@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
@@ -0,0 +1,3 @@
1
+ import { Directive } from '../directive';
2
+ export declare const FunctionDirectiveV1: Directive;
3
+ //# sourceMappingURL=function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,eAAO,MAAM,mBAAmB,EAAE,SAIjC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FunctionDirectiveV1 = void 0;
4
+ const name = 'function';
5
+ const definition = `
6
+ directive @function(name: String!, region: String) repeatable on FIELD_DEFINITION
7
+ `;
8
+ const defaults = {};
9
+ exports.FunctionDirectiveV1 = {
10
+ name,
11
+ definition,
12
+ defaults,
13
+ };
14
+ //# sourceMappingURL=function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function.js","sourceRoot":"","sources":["../../../src/directives/v1/function.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,UAAU,CAAC;AACxB,MAAM,UAAU,GAAiB;;CAEhC,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,mBAAmB,GAAc;IAC5C,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Directive } from '../directive';
2
+ export type HttpDirectiveV1Defaults = {
3
+ method: string;
4
+ headers: string[];
5
+ };
6
+ export declare const HttpDirectiveV1: Directive<HttpDirectiveV1Defaults>;
7
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,uBAAuB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAuB5E,eAAO,MAAM,eAAe,EAAE,SAAS,CAAC,uBAAuB,CAI9D,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HttpDirectiveV1 = void 0;
4
+ const name = 'http';
5
+ const defaults = {
6
+ method: 'GET',
7
+ headers: [],
8
+ };
9
+ const definition = `
10
+ directive @${name}(method: HttpMethod = ${defaults.method}, url: String!, headers: [HttpHeader] = ${JSON.stringify(defaults.headers)}) on FIELD_DEFINITION
11
+ enum HttpMethod {
12
+ GET
13
+ POST
14
+ PUT
15
+ DELETE
16
+ PATCH
17
+ }
18
+ input HttpHeader {
19
+ key: String
20
+ value: String
21
+ }
22
+ `;
23
+ exports.HttpDirectiveV1 = {
24
+ name,
25
+ definition,
26
+ defaults,
27
+ };
28
+ //# sourceMappingURL=http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/directives/v1/http.ts"],"names":[],"mappings":";;;AAGA,MAAM,IAAI,GAAG,MAAM,CAAC;AACpB,MAAM,QAAQ,GAA4B;IACxC,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,EAAE;CACZ,CAAC;AACF,MAAM,UAAU,GAAiB;eAClB,IAAI,yBAAyB,QAAQ,CAAC,MAAM,2CAA2C,IAAI,CAAC,SAAS,CAClH,QAAQ,CAAC,OAAO,CACjB;;;;;;;;;;;;CAYA,CAAC;AAEW,QAAA,eAAe,GAAuC;IACjE,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
@@ -0,0 +1,10 @@
1
+ export { AuthDirectiveV1 } from './auth';
2
+ export { ConnectionDirectiveV1 } from './connection';
3
+ export { FunctionDirectiveV1 } from './function';
4
+ export { HttpDirectiveV1 } from './http';
5
+ export { KeyDirectiveV1 } from './key';
6
+ export { ModelDirectiveV1 } from './model';
7
+ export { PredictionsDirectiveV1 } from './predictions';
8
+ export { SearchableDirectiveV1 } from './searchable';
9
+ export { VersionedDirectiveV1, VersionedDirectiveV1Defaults } from './versioned';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VersionedDirectiveV1 = exports.SearchableDirectiveV1 = exports.PredictionsDirectiveV1 = exports.ModelDirectiveV1 = exports.KeyDirectiveV1 = exports.HttpDirectiveV1 = exports.FunctionDirectiveV1 = exports.ConnectionDirectiveV1 = exports.AuthDirectiveV1 = void 0;
4
+ var auth_1 = require("./auth");
5
+ Object.defineProperty(exports, "AuthDirectiveV1", { enumerable: true, get: function () { return auth_1.AuthDirectiveV1; } });
6
+ var connection_1 = require("./connection");
7
+ Object.defineProperty(exports, "ConnectionDirectiveV1", { enumerable: true, get: function () { return connection_1.ConnectionDirectiveV1; } });
8
+ var function_1 = require("./function");
9
+ Object.defineProperty(exports, "FunctionDirectiveV1", { enumerable: true, get: function () { return function_1.FunctionDirectiveV1; } });
10
+ var http_1 = require("./http");
11
+ Object.defineProperty(exports, "HttpDirectiveV1", { enumerable: true, get: function () { return http_1.HttpDirectiveV1; } });
12
+ var key_1 = require("./key");
13
+ Object.defineProperty(exports, "KeyDirectiveV1", { enumerable: true, get: function () { return key_1.KeyDirectiveV1; } });
14
+ var model_1 = require("./model");
15
+ Object.defineProperty(exports, "ModelDirectiveV1", { enumerable: true, get: function () { return model_1.ModelDirectiveV1; } });
16
+ var predictions_1 = require("./predictions");
17
+ Object.defineProperty(exports, "PredictionsDirectiveV1", { enumerable: true, get: function () { return predictions_1.PredictionsDirectiveV1; } });
18
+ var searchable_1 = require("./searchable");
19
+ Object.defineProperty(exports, "SearchableDirectiveV1", { enumerable: true, get: function () { return searchable_1.SearchableDirectiveV1; } });
20
+ var versioned_1 = require("./versioned");
21
+ Object.defineProperty(exports, "VersionedDirectiveV1", { enumerable: true, get: function () { return versioned_1.VersionedDirectiveV1; } });
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/directives/v1/index.ts"],"names":[],"mappings":";;;AAAA,+BAAyC;AAAhC,uGAAA,eAAe,OAAA;AACxB,2CAAqD;AAA5C,mHAAA,qBAAqB,OAAA;AAC9B,uCAAiD;AAAxC,+GAAA,mBAAmB,OAAA;AAC5B,+BAAyC;AAAhC,uGAAA,eAAe,OAAA;AACxB,6BAAuC;AAA9B,qGAAA,cAAc,OAAA;AACvB,iCAA2C;AAAlC,yGAAA,gBAAgB,OAAA;AACzB,6CAAuD;AAA9C,qHAAA,sBAAsB,OAAA;AAC/B,2CAAqD;AAA5C,mHAAA,qBAAqB,OAAA;AAC9B,yCAAiF;AAAxE,iHAAA,oBAAoB,OAAA"}
@@ -0,0 +1,3 @@
1
+ import { Directive } from '../directive';
2
+ export declare const KeyDirectiveV1: Directive;
3
+ //# sourceMappingURL=key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,eAAO,MAAM,cAAc,EAAE,SAI5B,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KeyDirectiveV1 = void 0;
4
+ const name = 'key';
5
+ const definition = `
6
+ directive @${name}(name: String, fields: [String!]!, queryField: String) repeatable on OBJECT
7
+ `;
8
+ const defaults = {};
9
+ exports.KeyDirectiveV1 = {
10
+ name,
11
+ definition,
12
+ defaults,
13
+ };
14
+ //# sourceMappingURL=key.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"key.js","sourceRoot":"","sources":["../../../src/directives/v1/key.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,KAAK,CAAC;AACnB,MAAM,UAAU,GAAiB;eAClB,IAAI;CAClB,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,cAAc,GAAc;IACvC,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Directive } from '../directive';
2
+ export declare const ModelDirectiveV1: Directive;
3
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAqCzC,eAAO,MAAM,gBAAgB,EAAE,SAI9B,CAAC"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ModelDirectiveV1 = void 0;
4
+ const name = 'model';
5
+ const definition = `
6
+ directive @${name}(
7
+ queries: ModelQueryMap
8
+ mutations: ModelMutationMap
9
+ subscriptions: ModelSubscriptionMap
10
+ timestamps: TimestampConfiguration
11
+ ) on OBJECT
12
+ input ModelMutationMap {
13
+ create: String
14
+ update: String
15
+ delete: String
16
+ }
17
+ input ModelQueryMap {
18
+ get: String
19
+ list: String
20
+ }
21
+ input ModelSubscriptionMap {
22
+ onCreate: [String]
23
+ onUpdate: [String]
24
+ onDelete: [String]
25
+ level: ModelSubscriptionLevel
26
+ }
27
+ enum ModelSubscriptionLevel {
28
+ off
29
+ public
30
+ on
31
+ }
32
+ input TimestampConfiguration {
33
+ createdAt: String
34
+ updatedAt: String
35
+ }
36
+ `;
37
+ const defaults = {};
38
+ exports.ModelDirectiveV1 = {
39
+ name,
40
+ definition,
41
+ defaults,
42
+ };
43
+ //# sourceMappingURL=model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/directives/v1/model.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,OAAO,CAAC;AACrB,MAAM,UAAU,GAAiB;eAClB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BlB,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,gBAAgB,GAAc;IACzC,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Directive } from '../directive';
2
+ export declare const PredictionsDirectiveV1: Directive;
3
+ //# sourceMappingURL=predictions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"predictions.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/predictions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAczC,eAAO,MAAM,sBAAsB,EAAE,SAIpC,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PredictionsDirectiveV1 = void 0;
4
+ const name = 'predictions';
5
+ const definition = `
6
+ directive @${name}(actions: [PredictionsActions!]!) on FIELD_DEFINITION
7
+ enum PredictionsActions {
8
+ identifyText
9
+ identifyLabels
10
+ convertTextToSpeech
11
+ translateText
12
+ }
13
+ `;
14
+ const defaults = {};
15
+ exports.PredictionsDirectiveV1 = {
16
+ name,
17
+ definition,
18
+ defaults,
19
+ };
20
+ //# sourceMappingURL=predictions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"predictions.js","sourceRoot":"","sources":["../../../src/directives/v1/predictions.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,aAAa,CAAC;AAC3B,MAAM,UAAU,GAAiB;eAClB,IAAI;;;;;;;CAOlB,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,sBAAsB,GAAc;IAC/C,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Directive } from '../directive';
2
+ export declare const SearchableDirectiveV1: Directive;
3
+ //# sourceMappingURL=searchable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchable.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/searchable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAWzC,eAAO,MAAM,qBAAqB,EAAE,SAInC,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchableDirectiveV1 = void 0;
4
+ const name = 'searchable';
5
+ const definition = `
6
+ directive @${name}(queries: SearchableQueryMap) on OBJECT
7
+ input SearchableQueryMap {
8
+ search: String
9
+ }
10
+ `;
11
+ const defaults = {};
12
+ exports.SearchableDirectiveV1 = {
13
+ name,
14
+ definition,
15
+ defaults,
16
+ };
17
+ //# sourceMappingURL=searchable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchable.js","sourceRoot":"","sources":["../../../src/directives/v1/searchable.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,YAAY,CAAC;AAC1B,MAAM,UAAU,GAAiB;eAClB,IAAI;;;;CAIlB,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,qBAAqB,GAAc;IAC9C,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Directive } from '../directive';
2
+ export type VersionedDirectiveV1Defaults = {
3
+ versionField: string;
4
+ versionInput: string;
5
+ };
6
+ export declare const VersionedDirectiveV1: Directive<VersionedDirectiveV1Defaults>;
7
+ //# sourceMappingURL=versioned.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versioned.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/versioned.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,4BAA4B,GAAG;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC;AAU1F,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,4BAA4B,CAIxE,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VersionedDirectiveV1 = void 0;
4
+ const name = 'versioned';
5
+ const defaults = {
6
+ versionField: 'version',
7
+ versionInput: 'expectedVersion',
8
+ };
9
+ const definition = `
10
+ directive @${name}(versionField: String = "${defaults.versionField}", versionInput: String = "${defaults.versionInput}") on OBJECT
11
+ `;
12
+ exports.VersionedDirectiveV1 = {
13
+ name,
14
+ definition,
15
+ defaults,
16
+ };
17
+ //# sourceMappingURL=versioned.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versioned.js","sourceRoot":"","sources":["../../../src/directives/v1/versioned.ts"],"names":[],"mappings":";;;AAGA,MAAM,IAAI,GAAG,WAAW,CAAC;AACzB,MAAM,QAAQ,GAAiC;IAC7C,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,iBAAiB;CAChC,CAAC;AACF,MAAM,UAAU,GAAiB;eAClB,IAAI,4BAA4B,QAAQ,CAAC,YAAY,8BAA8B,QAAQ,CAAC,YAAY;CACtH,CAAC;AAEW,QAAA,oBAAoB,GAA4C;IAC3E,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './directives';
2
+ import type { Directive } from './directives';
3
+ export declare const AppSyncDirectives: readonly Directive[];
4
+ export declare const V2Directives: readonly Directive[];
5
+ export declare const DefaultDirectives: readonly Directive[];
6
+ export declare const V1Directives: readonly Directive[];
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAqC9C,eAAO,MAAM,iBAAiB,EAAE,SAAS,SAAS,EAQjD,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,SAAS,SAAS,EAkB5C,CAAC;AAKF,eAAO,MAAM,iBAAiB,EAAE,SAAS,SAAS,EAA2C,CAAC;AAE9F,eAAO,MAAM,YAAY,EAAE,SAAS,SAAS,EAU5C,CAAC"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.V1Directives = exports.DefaultDirectives = exports.V2Directives = exports.AppSyncDirectives = void 0;
18
+ __exportStar(require("./directives"), exports);
19
+ const directives_1 = require("./directives");
20
+ exports.AppSyncDirectives = [
21
+ directives_1.AwsApiKeyDirective,
22
+ directives_1.AwsAuthDirective,
23
+ directives_1.AwsCognitoUserPoolsDirective,
24
+ directives_1.AwsIamDirective,
25
+ directives_1.AwsLambdaDirective,
26
+ directives_1.AwsOidcDirective,
27
+ directives_1.AwsSubscribeDirective,
28
+ ];
29
+ exports.V2Directives = [
30
+ directives_1.AuthDirective,
31
+ directives_1.BelongsToDirective,
32
+ directives_1.DefaultDirective,
33
+ directives_1.DeprecatedDirective,
34
+ directives_1.FunctionDirective,
35
+ directives_1.HasManyDirective,
36
+ directives_1.HasOneDirective,
37
+ directives_1.HttpDirective,
38
+ directives_1.IndexDirective,
39
+ directives_1.ManyToManyDirective,
40
+ directives_1.MapsToDirective,
41
+ directives_1.ModelDirective,
42
+ directives_1.PredictionsDirective,
43
+ directives_1.PrimaryKeyDirective,
44
+ directives_1.RefersToDirective,
45
+ directives_1.SearchableDirective,
46
+ directives_1.SqlDirective,
47
+ ];
48
+ exports.DefaultDirectives = exports.AppSyncDirectives.concat(exports.V2Directives);
49
+ exports.V1Directives = [
50
+ directives_1.AuthDirectiveV1,
51
+ directives_1.ConnectionDirectiveV1,
52
+ directives_1.FunctionDirectiveV1,
53
+ directives_1.HttpDirectiveV1,
54
+ directives_1.KeyDirectiveV1,
55
+ directives_1.ModelDirectiveV1,
56
+ directives_1.PredictionsDirectiveV1,
57
+ directives_1.SearchableDirectiveV1,
58
+ directives_1.VersionedDirectiveV1,
59
+ ];
60
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAA6B;AAE7B,6CAkCsB;AAET,QAAA,iBAAiB,GAAyB;IACrD,+BAAkB;IAClB,6BAAgB;IAChB,yCAA4B;IAC5B,4BAAe;IACf,+BAAkB;IAClB,6BAAgB;IAChB,kCAAqB;CACtB,CAAC;AAGW,QAAA,YAAY,GAAyB;IAChD,0BAAa;IACb,+BAAkB;IAClB,6BAAgB;IAChB,gCAAmB;IACnB,8BAAiB;IACjB,6BAAgB;IAChB,4BAAe;IACf,0BAAa;IACb,2BAAc;IACd,gCAAmB;IACnB,4BAAe;IACf,2BAAc;IACd,iCAAoB;IACpB,gCAAmB;IACnB,8BAAiB;IACjB,gCAAmB;IACnB,yBAAY;CACb,CAAC;AAKW,QAAA,iBAAiB,GAAyB,yBAAiB,CAAC,MAAM,CAAC,oBAAY,CAAC,CAAC;AAEjF,QAAA,YAAY,GAAyB;IAChD,4BAAe;IACf,kCAAqB;IACrB,gCAAmB;IACnB,4BAAe;IACf,2BAAc;IACd,6BAAgB;IAChB,mCAAsB;IACtB,kCAAqB;IACrB,iCAAoB;CACrB,CAAC"}
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@aws-amplify/graphql-directives",
3
+ "version": "1.1.0-gen2-release.0",
4
+ "description": "Directive definitions for Amplify GraphQL transformers.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/aws-amplify/amplify-category-api.git",
8
+ "directory": "packages/amplify-graphql-directives"
9
+ },
10
+ "author": "Amazon Web Services",
11
+ "license": "Apache-2.0",
12
+ "main": "lib/index.js",
13
+ "types": "lib/index.d.ts",
14
+ "keywords": [
15
+ "graphql",
16
+ "aws",
17
+ "amplify"
18
+ ],
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "scripts": {
23
+ "build": "tsc",
24
+ "watch": "tsc -w",
25
+ "clean": "rimraf ./lib",
26
+ "test": "jest",
27
+ "extract-api": "ts-node ../../scripts/extract-api.ts"
28
+ },
29
+ "jest": {
30
+ "transform": {
31
+ "^.+\\.tsx?$": "ts-jest"
32
+ },
33
+ "testURL": "http://localhost",
34
+ "testRegex": "(src/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
35
+ "moduleFileExtensions": [
36
+ "ts",
37
+ "tsx",
38
+ "js",
39
+ "jsx",
40
+ "json",
41
+ "node"
42
+ ],
43
+ "collectCoverage": true,
44
+ "coverageProvider": "v8",
45
+ "coverageThreshold": {
46
+ "global": {
47
+ "branches": 100,
48
+ "functions": 100,
49
+ "lines": 100
50
+ }
51
+ },
52
+ "coverageReporters": [
53
+ "clover",
54
+ "text"
55
+ ],
56
+ "testEnvironment": "../../FixJestEnvironment.js",
57
+ "collectCoverageFrom": [
58
+ "src/**/*.ts"
59
+ ],
60
+ "coveragePathIgnorePatterns": [
61
+ "/__tests__/",
62
+ "src/directives/directive.ts"
63
+ ]
64
+ },
65
+ "gitHead": "a550843921e81b923214a9038b0725ac5e6b2b67"
66
+ }
@@ -3,7 +3,11 @@
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.1.19-iam-auth-with-identityPool-provider-1.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@2.1.18...@aws-amplify/graphql-function-transformer@2.1.19-iam-auth-with-identityPool-provider-1.0) (2024-03-15)
6
+ ## [2.1.20-gen2-release.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@2.1.19-gen2-release.1...@aws-amplify/graphql-function-transformer@2.1.20-gen2-release.0) (2024-03-29)
7
+
8
+ **Note:** Version bump only for package @aws-amplify/graphql-function-transformer
9
+
10
+ ## [2.1.19](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@2.1.18...@aws-amplify/graphql-function-transformer@2.1.19) (2024-03-28)
7
11
 
8
12
  **Note:** Version bump only for package @aws-amplify/graphql-function-transformer
9
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-function-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-function-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC5I,OAAO,EAAE,0BAA0B,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;AACpI,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAKjD,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAepH,qBAAa,mBAAoB,SAAQ,qBAAqB;IAGhD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC;IAF7C,OAAO,CAAC,cAAc,CAAyE;gBAElE,eAAe,CAAC,8CAAkC;IAI/E,KAAK,WACK,wBAAwB,GAAG,2BAA2B,cAClD,mBAAmB,aACpB,aAAa,OACnB,yCAAyC,KAC7C,IAAI,CAiBL;IAEF,iBAAiB,YAAa,0BAA0B,KAAG,IAAI,CA8H7D;CACH"}
1
+ {"version":3,"file":"graphql-function-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-function-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC5I,OAAO,EAAE,0BAA0B,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;AAEpI,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAKjD,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAYpH,qBAAa,mBAAoB,SAAQ,qBAAqB;IAGhD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC;IAF7C,OAAO,CAAC,cAAc,CAAyE;gBAElE,eAAe,CAAC,8CAAkC;IAI/E,KAAK,WACK,wBAAwB,GAAG,2BAA2B,cAClD,mBAAmB,aACpB,aAAa,OACnB,yCAAyC,KAC7C,IAAI,CAiBL;IAEF,iBAAiB,YAAa,0BAA0B,KAAG,IAAI,CA8H7D;CACH"}
@@ -25,18 +25,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.FunctionTransformer = void 0;
27
27
  const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
28
+ const graphql_directives_1 = require("@aws-amplify/graphql-directives");
28
29
  const lambda = __importStar(require("aws-cdk-lib/aws-lambda"));
29
30
  const aws_appsync_1 = require("aws-cdk-lib/aws-appsync");
30
31
  const cdk = __importStar(require("aws-cdk-lib"));
31
32
  const graphql_mapping_template_1 = require("graphql-mapping-template");
32
33
  const graphql_transformer_common_1 = require("graphql-transformer-common");
33
34
  const FUNCTION_DIRECTIVE_STACK = 'FunctionDirectiveStack';
34
- const directiveDefinition = `
35
- directive @function(name: String!, region: String, accountId: String) repeatable on FIELD_DEFINITION
36
- `;
37
35
  class FunctionTransformer extends graphql_transformer_core_1.TransformerPluginBase {
38
36
  constructor(functionNameMap) {
39
- super('amplify-function-transformer', directiveDefinition);
37
+ super('amplify-function-transformer', graphql_directives_1.FunctionDirective.definition);
40
38
  this.functionNameMap = functionNameMap;
41
39
  this.resolverGroups = new Map();
42
40
  this.field = (parent, definition, directive, acc) => {
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-function-transformer.js","sourceRoot":"","sources":["../src/graphql-function-transformer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oFAA4I;AAE5I,+DAAiD;AACjD,yDAA4D;AAC5D,iDAAmC;AACnC,uEAAqH;AACrH,2EAAyG;AAWzG,MAAM,wBAAwB,GAAG,wBAAwB,CAAC;AAC1D,MAAM,mBAAmB,GAAiB;;CAEzC,CAAC;AAEF,MAAa,mBAAoB,SAAQ,gDAAqB;IAG5D,YAA6B,eAAkD;QAC7E,KAAK,CAAC,8BAA8B,EAAE,mBAAmB,CAAC,CAAC;QADhC,oBAAe,GAAf,eAAe,CAAmC;QAFvE,mBAAc,GAA+D,IAAI,GAAG,EAAE,CAAC;QAM/F,UAAK,GAAG,CACN,MAA8D,EAC9D,UAA+B,EAC/B,SAAwB,EACxB,GAA8C,EACxC,EAAE;YACR,MAAM,gBAAgB,GAAG,IAAI,2CAAgB,CAAC,SAAS,CAAC,CAAC;YACzD,MAAM,IAAI,GAAG,gBAAgB,CAAC,YAAY,CACxC;gBACE,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,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SAAkB,EAAU,EAAE;IACnG,MAAM,aAAa,GAA8B,EAAE,CAAC;IAEpD,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAC3B,aAAa,CAAC,GAAG,GAAG,GAAG,CAAC;KACzB;IACD,OAAO,GAAG,CAAC,EAAE,CAAC,WAAW,CACvB,8CAAiB,CAAC,UAAU,CAAC,uBAAuB,EACpD,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,aAAa,CAAC,EAChE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAC5E,CAAC,QAAQ,EAAE,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,MAAe,EAAE,SAAkB,EAAU,EAAE;IAEjF,OAAO,kBAAkB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,IAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,mBAAmB,aAAa,IAAI,EAAE,CAAC;AAChI,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-function-transformer",
3
- "version": "2.1.19-iam-auth-with-identityPool-provider-1.0",
3
+ "version": "2.1.20-gen2-release.0",
4
4
  "description": "Amplify GraphQL @function transformer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,14 +28,15 @@
28
28
  "extract-api": "ts-node ../../scripts/extract-api.ts"
29
29
  },
30
30
  "dependencies": {
31
- "@aws-amplify/graphql-transformer-core": "2.5.1-iam-auth-with-identityPool-provider-1.0",
32
- "@aws-amplify/graphql-transformer-interfaces": "3.4.1-iam-auth-with-identityPool-provider-1.0",
31
+ "@aws-amplify/graphql-directives": "1.1.0-gen2-release.0",
32
+ "@aws-amplify/graphql-transformer-core": "2.5.2-gen2-release.0",
33
+ "@aws-amplify/graphql-transformer-interfaces": "3.5.1-gen2-release.0",
33
34
  "graphql": "^15.5.0",
34
- "graphql-mapping-template": "4.20.16-iam-auth-with-identityPool-provider-1.0",
35
- "graphql-transformer-common": "4.28.2-iam-auth-with-identityPool-provider-1.0"
35
+ "graphql-mapping-template": "4.20.15",
36
+ "graphql-transformer-common": "4.29.1-gen2-release.0"
36
37
  },
37
38
  "devDependencies": {
38
- "@aws-amplify/graphql-transformer-test-utils": "0.4.7-iam-auth-with-identityPool-provider-1.0"
39
+ "@aws-amplify/graphql-transformer-test-utils": "0.4.8-gen2-release.0"
39
40
  },
40
41
  "peerDependencies": {
41
42
  "aws-cdk-lib": "^2.80.0",
@@ -78,5 +79,5 @@
78
79
  "/__tests__/"
79
80
  ]
80
81
  },
81
- "gitHead": "dafa4bb5ea5cec5dc90b722bf138064897f4f24a"
82
+ "gitHead": "a550843921e81b923214a9038b0725ac5e6b2b67"
82
83
  }
@@ -3,7 +3,11 @@
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.1.19-iam-auth-with-identityPool-provider-1.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@2.1.18...@aws-amplify/graphql-http-transformer@2.1.19-iam-auth-with-identityPool-provider-1.0) (2024-03-15)
6
+ ## [2.1.20-gen2-release.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@2.1.19-gen2-release.1...@aws-amplify/graphql-http-transformer@2.1.20-gen2-release.0) (2024-03-29)
7
+
8
+ **Note:** Version bump only for package @aws-amplify/graphql-http-transformer
9
+
10
+ ## [2.1.19](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@2.1.18...@aws-amplify/graphql-http-transformer@2.1.19) (2024-03-28)
7
11
 
8
12
  **Note:** Version bump only for package @aws-amplify/graphql-http-transformer
9
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-http-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-http-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,qBAAqB,EACtB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;AAGpI,OAAO,EACL,aAAa,EACb,mBAAmB,EAGnB,2BAA2B,EAE3B,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAoEjB,qBAAa,eAAgB,SAAQ,qBAAqB;IACxD,OAAO,CAAC,aAAa,CAAoC;;IAMzD,KAAK,WACK,wBAAwB,GAAG,2BAA2B,cAClD,mBAAmB,aACpB,aAAa,WACf,yCAAyC,KACjD,IAAI,CAiGL;IAEF,iBAAiB,YAAa,0BAA0B,KAAG,IAAI,CAuB7D;CACH"}
1
+ {"version":3,"file":"graphql-http-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-http-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,qBAAqB,EACtB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;AAIpI,OAAO,EACL,aAAa,EACb,mBAAmB,EAGnB,2BAA2B,EAE3B,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAsDjB,qBAAa,eAAgB,SAAQ,qBAAqB;IACxD,OAAO,CAAC,aAAa,CAAoC;;IAMzD,KAAK,WACK,wBAAwB,GAAG,2BAA2B,cAClD,mBAAmB,aACpB,aAAa,WACf,yCAAyC,KACjD,IAAI,CAiGL;IAEF,iBAAiB,YAAa,0BAA0B,KAAG,IAAI,CAuB7D;CACH"}
@@ -25,6 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.HttpTransformer = void 0;
27
27
  const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
28
+ const graphql_directives_1 = require("@aws-amplify/graphql-directives");
28
29
  const aws_appsync_1 = require("aws-cdk-lib/aws-appsync");
29
30
  const cdk = __importStar(require("aws-cdk-lib"));
30
31
  const graphql_1 = require("graphql");
@@ -35,23 +36,9 @@ const URL_REGEX = /(http(s)?:\/\/)|(\/.*)/g;
35
36
  const VALID_PROTOCOLS_REGEX = /^http(s)?:\/\//;
36
37
  const HTTP_DIRECTIVE_STACK = 'HttpStack';
37
38
  const RESOLVER_VERSION = '2018-05-29';
38
- const directiveDefinition = `
39
- directive @http(method: HttpMethod = GET, url: String!, headers: [HttpHeader] = []) on FIELD_DEFINITION
40
- enum HttpMethod {
41
- GET
42
- POST
43
- PUT
44
- DELETE
45
- PATCH
46
- }
47
- input HttpHeader {
48
- key: String
49
- value: String
50
- }
51
- `;
52
39
  class HttpTransformer extends graphql_transformer_core_1.TransformerPluginBase {
53
40
  constructor() {
54
- super('amplify-http-transformer', directiveDefinition);
41
+ super('amplify-http-transformer', graphql_directives_1.HttpDirective.definition);
55
42
  this.directiveList = [];
56
43
  this.field = (parent, definition, directive, context) => {
57
44
  var _a, _b;