@aws-amplify/graphql-api-construct 1.7.0-iam-auth-with-identityPool-provider-1.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (433) hide show
  1. package/.jsii +330 -331
  2. package/API.md +16 -17
  3. package/CHANGELOG.md +2 -2
  4. package/README.md +75 -17
  5. package/lib/amplify-dynamodb-table-wrapper.js +1 -1
  6. package/lib/amplify-graphql-api.js +2 -3
  7. package/lib/amplify-graphql-definition.js +1 -1
  8. package/lib/index.d.ts +1 -1
  9. package/lib/index.js +1 -1
  10. package/lib/internal/authorization-modes.d.ts +1 -2
  11. package/lib/internal/authorization-modes.js +7 -37
  12. package/lib/internal/data-source-config.js +37 -4
  13. package/lib/model-datasource-strategy-types.d.ts +25 -1
  14. package/lib/model-datasource-strategy-types.js +1 -1
  15. package/lib/sql-model-datasource-strategy.d.ts +13 -1
  16. package/lib/sql-model-datasource-strategy.js +26 -4
  17. package/lib/types.d.ts +5 -51
  18. package/lib/types.js +1 -1
  19. package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +2 -4
  20. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +2 -4
  21. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
  22. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +21 -33
  23. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
  24. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/constants.d.ts.map +1 -1
  25. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/constants.js +0 -1
  26. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/constants.js.map +1 -1
  27. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.d.ts +2 -3
  28. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.d.ts.map +1 -1
  29. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.js +2 -39
  30. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.js.map +1 -1
  31. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/index.d.ts +1 -2
  32. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/index.d.ts.map +1 -1
  33. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/index.js +11 -22
  34. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/index.js.map +1 -1
  35. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.d.ts.map +1 -1
  36. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.js +4 -11
  37. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.js.map +1 -1
  38. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/warnings.d.ts +0 -1
  39. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/warnings.d.ts.map +1 -1
  40. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/warnings.js +1 -10
  41. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/warnings.js.map +1 -1
  42. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts +1 -1
  43. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts.map +1 -1
  44. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js +1 -1
  45. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js.map +1 -1
  46. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.d.ts +1 -1
  47. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.d.ts.map +1 -1
  48. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.js +7 -14
  49. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.js.map +1 -1
  50. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.d.ts +1 -2
  51. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.d.ts.map +1 -1
  52. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.js +3 -14
  53. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.js.map +1 -1
  54. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.d.ts.map +1 -1
  55. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.js +3 -3
  56. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.js.map +1 -1
  57. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.d.ts.map +1 -1
  58. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.js +3 -3
  59. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.js.map +1 -1
  60. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.d.ts.map +1 -1
  61. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.js +3 -3
  62. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.js.map +1 -1
  63. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.d.ts.map +1 -1
  64. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.js +2 -2
  65. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.js.map +1 -1
  66. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.d.ts.map +1 -1
  67. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.js +3 -3
  68. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.js.map +1 -1
  69. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.d.ts.map +1 -1
  70. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.js +1 -1
  71. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.js.map +1 -1
  72. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts +1 -1
  73. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts.map +1 -1
  74. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js +2 -2
  75. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js.map +1 -1
  76. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts +2 -3
  77. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts.map +1 -1
  78. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js +14 -34
  79. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js.map +1 -1
  80. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.d.ts.map +1 -1
  81. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js +5 -5
  82. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js.map +1 -1
  83. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js +3 -3
  84. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js.map +1 -1
  85. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/subscription.js +1 -1
  86. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/subscription.js.map +1 -1
  87. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts +1 -1
  88. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts.map +1 -1
  89. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +14 -13
  90. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +1 -1
  91. package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.d.ts.map +1 -1
  92. package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js +2 -5
  93. package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js.map +1 -1
  94. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +9 -8
  95. package/node_modules/@aws-amplify/graphql-directives/API.md +158 -0
  96. package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +8 -0
  97. package/node_modules/@aws-amplify/graphql-directives/Readme.md +19 -0
  98. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-api-key.d.ts +3 -0
  99. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-api-key.d.ts.map +1 -0
  100. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-api-key.js +14 -0
  101. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-api-key.js.map +1 -0
  102. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-auth.d.ts +3 -0
  103. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-auth.d.ts.map +1 -0
  104. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-auth.js +14 -0
  105. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-auth.js.map +1 -0
  106. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-cognito-user-pools.d.ts +3 -0
  107. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-cognito-user-pools.d.ts.map +1 -0
  108. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-cognito-user-pools.js +14 -0
  109. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-cognito-user-pools.js.map +1 -0
  110. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-iam.d.ts +3 -0
  111. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-iam.d.ts.map +1 -0
  112. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-iam.js +14 -0
  113. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-iam.js.map +1 -0
  114. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-lambda.d.ts +3 -0
  115. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-lambda.d.ts.map +1 -0
  116. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-lambda.js +14 -0
  117. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-lambda.js.map +1 -0
  118. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-oidc.d.ts +3 -0
  119. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-oidc.d.ts.map +1 -0
  120. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-oidc.js +14 -0
  121. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-oidc.js.map +1 -0
  122. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-subscribe.d.ts +3 -0
  123. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-subscribe.d.ts.map +1 -0
  124. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-subscribe.js +14 -0
  125. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-subscribe.js.map +1 -0
  126. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/index.d.ts +8 -0
  127. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/index.d.ts.map +1 -0
  128. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/index.js +18 -0
  129. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/index.js.map +1 -0
  130. package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.d.ts +3 -0
  131. package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.d.ts.map +1 -0
  132. package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.js +49 -0
  133. package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.js.map +1 -0
  134. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.d.ts +3 -0
  135. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.d.ts.map +1 -0
  136. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js +14 -0
  137. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js.map +1 -0
  138. package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.d.ts +3 -0
  139. package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.d.ts.map +1 -0
  140. package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.js +14 -0
  141. package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.js.map +1 -0
  142. package/node_modules/@aws-amplify/graphql-directives/lib/directives/deprecated.d.ts +3 -0
  143. package/node_modules/@aws-amplify/graphql-directives/lib/directives/deprecated.d.ts.map +1 -0
  144. package/node_modules/@aws-amplify/graphql-directives/lib/directives/deprecated.js +14 -0
  145. package/node_modules/@aws-amplify/graphql-directives/lib/directives/deprecated.js.map +1 -0
  146. package/node_modules/@aws-amplify/graphql-directives/lib/directives/directive.d.ts +8 -0
  147. package/node_modules/@aws-amplify/graphql-directives/lib/directives/directive.d.ts.map +1 -0
  148. package/node_modules/@aws-amplify/graphql-directives/lib/directives/directive.js +3 -0
  149. package/node_modules/@aws-amplify/graphql-directives/lib/directives/directive.js.map +1 -0
  150. package/node_modules/@aws-amplify/graphql-directives/lib/directives/function.d.ts +3 -0
  151. package/node_modules/@aws-amplify/graphql-directives/lib/directives/function.d.ts.map +1 -0
  152. package/node_modules/@aws-amplify/graphql-directives/lib/directives/function.js +14 -0
  153. package/node_modules/@aws-amplify/graphql-directives/lib/directives/function.js.map +1 -0
  154. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-many.d.ts +6 -0
  155. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-many.d.ts.map +1 -0
  156. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-many.js +16 -0
  157. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-many.js.map +1 -0
  158. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-one.d.ts +3 -0
  159. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-one.d.ts.map +1 -0
  160. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-one.js +14 -0
  161. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-one.js.map +1 -0
  162. package/node_modules/@aws-amplify/graphql-directives/lib/directives/http.d.ts +7 -0
  163. package/node_modules/@aws-amplify/graphql-directives/lib/directives/http.d.ts.map +1 -0
  164. package/node_modules/@aws-amplify/graphql-directives/lib/directives/http.js +28 -0
  165. package/node_modules/@aws-amplify/graphql-directives/lib/directives/http.js.map +1 -0
  166. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index-directive.d.ts +3 -0
  167. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index-directive.d.ts.map +1 -0
  168. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index-directive.js +14 -0
  169. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index-directive.js.map +1 -0
  170. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts +21 -0
  171. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts.map +1 -0
  172. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js +54 -0
  173. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js.map +1 -0
  174. package/node_modules/@aws-amplify/graphql-directives/lib/directives/many-to-many.d.ts +6 -0
  175. package/node_modules/@aws-amplify/graphql-directives/lib/directives/many-to-many.d.ts.map +1 -0
  176. package/node_modules/@aws-amplify/graphql-directives/lib/directives/many-to-many.js +16 -0
  177. package/node_modules/@aws-amplify/graphql-directives/lib/directives/many-to-many.js.map +1 -0
  178. package/node_modules/@aws-amplify/graphql-directives/lib/directives/maps-to.d.ts +3 -0
  179. package/node_modules/@aws-amplify/graphql-directives/lib/directives/maps-to.d.ts.map +1 -0
  180. package/node_modules/@aws-amplify/graphql-directives/lib/directives/maps-to.js +14 -0
  181. package/node_modules/@aws-amplify/graphql-directives/lib/directives/maps-to.js.map +1 -0
  182. package/node_modules/@aws-amplify/graphql-directives/lib/directives/model.d.ts +3 -0
  183. package/node_modules/@aws-amplify/graphql-directives/lib/directives/model.d.ts.map +1 -0
  184. package/node_modules/@aws-amplify/graphql-directives/lib/directives/model.js +43 -0
  185. package/node_modules/@aws-amplify/graphql-directives/lib/directives/model.js.map +1 -0
  186. package/node_modules/@aws-amplify/graphql-directives/lib/directives/predictions.d.ts +3 -0
  187. package/node_modules/@aws-amplify/graphql-directives/lib/directives/predictions.d.ts.map +1 -0
  188. package/node_modules/@aws-amplify/graphql-directives/lib/directives/predictions.js +20 -0
  189. package/node_modules/@aws-amplify/graphql-directives/lib/directives/predictions.js.map +1 -0
  190. package/node_modules/@aws-amplify/graphql-directives/lib/directives/primary-key.d.ts +3 -0
  191. package/node_modules/@aws-amplify/graphql-directives/lib/directives/primary-key.d.ts.map +1 -0
  192. package/node_modules/@aws-amplify/graphql-directives/lib/directives/primary-key.js +14 -0
  193. package/node_modules/@aws-amplify/graphql-directives/lib/directives/primary-key.js.map +1 -0
  194. package/node_modules/@aws-amplify/graphql-directives/lib/directives/refers-to.d.ts +3 -0
  195. package/node_modules/@aws-amplify/graphql-directives/lib/directives/refers-to.d.ts.map +1 -0
  196. package/node_modules/@aws-amplify/graphql-directives/lib/directives/refers-to.js +14 -0
  197. package/node_modules/@aws-amplify/graphql-directives/lib/directives/refers-to.js.map +1 -0
  198. package/node_modules/@aws-amplify/graphql-directives/lib/directives/searchable.d.ts +3 -0
  199. package/node_modules/@aws-amplify/graphql-directives/lib/directives/searchable.d.ts.map +1 -0
  200. package/node_modules/@aws-amplify/graphql-directives/lib/directives/searchable.js +17 -0
  201. package/node_modules/@aws-amplify/graphql-directives/lib/directives/searchable.js.map +1 -0
  202. package/node_modules/@aws-amplify/graphql-directives/lib/directives/sql.d.ts +3 -0
  203. package/node_modules/@aws-amplify/graphql-directives/lib/directives/sql.d.ts.map +1 -0
  204. package/node_modules/@aws-amplify/graphql-directives/lib/directives/sql.js +14 -0
  205. package/node_modules/@aws-amplify/graphql-directives/lib/directives/sql.js.map +1 -0
  206. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/auth.d.ts +3 -0
  207. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/auth.d.ts.map +1 -0
  208. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/auth.js +85 -0
  209. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/auth.js.map +1 -0
  210. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/connection.d.ts +3 -0
  211. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/connection.d.ts.map +1 -0
  212. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/connection.js +21 -0
  213. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/connection.js.map +1 -0
  214. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/function.d.ts +3 -0
  215. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/function.d.ts.map +1 -0
  216. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/function.js +14 -0
  217. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/function.js.map +1 -0
  218. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/http.d.ts +7 -0
  219. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/http.d.ts.map +1 -0
  220. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/http.js +28 -0
  221. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/http.js.map +1 -0
  222. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/index.d.ts +10 -0
  223. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/index.d.ts.map +1 -0
  224. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/index.js +22 -0
  225. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/index.js.map +1 -0
  226. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/key.d.ts +3 -0
  227. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/key.d.ts.map +1 -0
  228. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/key.js +14 -0
  229. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/key.js.map +1 -0
  230. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/model.d.ts +3 -0
  231. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/model.d.ts.map +1 -0
  232. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/model.js +43 -0
  233. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/model.js.map +1 -0
  234. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/predictions.d.ts +3 -0
  235. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/predictions.d.ts.map +1 -0
  236. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/predictions.js +20 -0
  237. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/predictions.js.map +1 -0
  238. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/searchable.d.ts +3 -0
  239. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/searchable.d.ts.map +1 -0
  240. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/searchable.js +17 -0
  241. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/searchable.js.map +1 -0
  242. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/versioned.d.ts +7 -0
  243. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/versioned.d.ts.map +1 -0
  244. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/versioned.js +17 -0
  245. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/versioned.js.map +1 -0
  246. package/node_modules/@aws-amplify/graphql-directives/lib/index.d.ts +7 -0
  247. package/node_modules/@aws-amplify/graphql-directives/lib/index.d.ts.map +1 -0
  248. package/node_modules/@aws-amplify/graphql-directives/lib/index.js +60 -0
  249. package/node_modules/@aws-amplify/graphql-directives/lib/index.js.map +1 -0
  250. package/node_modules/@aws-amplify/graphql-directives/package.json +66 -0
  251. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +1 -1
  252. package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.d.ts.map +1 -1
  253. package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.js +2 -4
  254. package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.js.map +1 -1
  255. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +8 -7
  256. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +1 -1
  257. package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.d.ts.map +1 -1
  258. package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.js +2 -15
  259. package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.js.map +1 -1
  260. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +8 -7
  261. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +1 -1
  262. package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-index-transformer.d.ts.map +1 -1
  263. package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-index-transformer.js +5 -8
  264. package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-index-transformer.js.map +1 -1
  265. package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.d.ts.map +1 -1
  266. package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.js +4 -7
  267. package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.js.map +1 -1
  268. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +9 -8
  269. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +1 -1
  270. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  271. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.d.ts.map +1 -1
  272. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.js +6 -9
  273. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.js.map +1 -1
  274. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.d.ts.map +1 -1
  275. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js +9 -12
  276. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js.map +1 -1
  277. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +12 -11
  278. package/node_modules/@aws-amplify/graphql-model-transformer/API.md +2 -2
  279. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +4 -2
  280. package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.d.ts +0 -2
  281. package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.d.ts.map +1 -1
  282. package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.js +1 -9
  283. package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.js.map +1 -1
  284. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts +0 -1
  285. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
  286. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +19 -73
  287. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
  288. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.d.ts +1 -1
  289. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.d.ts.map +1 -1
  290. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.js +7 -11
  291. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.js.map +1 -1
  292. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  293. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  294. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  295. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.d.ts +1 -1
  296. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.d.ts.map +1 -1
  297. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.js +7 -15
  298. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.js.map +1 -1
  299. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +5 -1
  300. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts.map +1 -1
  301. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js +71 -26
  302. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js.map +1 -1
  303. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.d.ts.map +1 -1
  304. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js +3 -3
  305. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js.map +1 -1
  306. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.d.ts.map +1 -1
  307. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js +21 -7
  308. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js.map +1 -1
  309. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +8 -7
  310. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +1 -1
  311. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.d.ts.map +1 -1
  312. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.js +2 -1
  313. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.js.map +1 -1
  314. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  315. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/utils/constants.d.ts +0 -1
  316. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/utils/constants.d.ts.map +1 -1
  317. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/utils/constants.js +1 -10
  318. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/utils/constants.js.map +1 -1
  319. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +8 -7
  320. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +1 -1
  321. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.d.ts +12 -0
  322. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.d.ts.map +1 -0
  323. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.js +34 -0
  324. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.js.map +1 -0
  325. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.d.ts +12 -0
  326. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.d.ts.map +1 -0
  327. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.js +27 -0
  328. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.js.map +1 -0
  329. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.d.ts +5 -0
  330. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.d.ts.map +1 -0
  331. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.js +16 -0
  332. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.js.map +1 -0
  333. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.d.ts +11 -0
  334. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.d.ts.map +1 -0
  335. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.js +3 -0
  336. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.js.map +1 -0
  337. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.d.ts.map +1 -1
  338. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +15 -49
  339. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js.map +1 -1
  340. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.d.ts.map +1 -1
  341. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js +18 -45
  342. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js.map +1 -1
  343. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.d.ts.map +1 -1
  344. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js +13 -35
  345. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js.map +1 -1
  346. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.d.ts.map +1 -1
  347. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js +13 -17
  348. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js.map +1 -1
  349. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.d.ts +12 -0
  350. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.d.ts.map +1 -0
  351. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.js +32 -0
  352. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.js.map +1 -0
  353. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.d.ts +12 -0
  354. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.d.ts.map +1 -0
  355. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.js +27 -0
  356. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.js.map +1 -0
  357. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.d.ts +5 -0
  358. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.d.ts.map +1 -0
  359. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.js +16 -0
  360. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.js.map +1 -0
  361. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.d.ts +12 -0
  362. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.d.ts.map +1 -0
  363. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.js +31 -0
  364. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.js.map +1 -0
  365. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.d.ts +12 -0
  366. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.d.ts.map +1 -0
  367. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.js +27 -0
  368. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.js.map +1 -0
  369. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.d.ts +5 -0
  370. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.d.ts.map +1 -0
  371. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js +16 -0
  372. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js.map +1 -0
  373. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +10 -9
  374. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +1 -1
  375. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.d.ts.map +1 -1
  376. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js +2 -6
  377. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js.map +1 -1
  378. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  379. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +9 -8
  380. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +1 -1
  381. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.d.ts.map +1 -1
  382. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js +2 -4
  383. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js.map +1 -1
  384. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +9 -8
  385. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +4 -2
  386. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts.map +1 -1
  387. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
  388. package/node_modules/@aws-amplify/graphql-transformer/package.json +16 -16
  389. package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +1 -0
  390. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +3 -0
  391. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +1 -1
  392. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
  393. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
  394. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +3 -2
  395. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
  396. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/validation.d.ts.map +1 -1
  397. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/validation.js +11 -12
  398. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/validation.js.map +1 -1
  399. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +1 -0
  400. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
  401. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +8 -1
  402. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -1
  403. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +5 -4
  404. package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +27 -2
  405. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +4 -2
  406. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +12 -1
  407. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
  408. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js +22 -0
  409. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
  410. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/synth-parameters.d.ts +0 -1
  411. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/synth-parameters.d.ts.map +1 -1
  412. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +2 -2
  413. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +76 -1
  414. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/synth-parameters.ts +0 -1
  415. package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
  416. package/node_modules/graphql-mapping-template/CHANGELOG.md +0 -4
  417. package/node_modules/graphql-mapping-template/package.json +2 -3
  418. package/node_modules/graphql-transformer-common/API.md +13 -0
  419. package/node_modules/graphql-transformer-common/CHANGELOG.md +4 -2
  420. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts +13 -0
  421. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts.map +1 -1
  422. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js +13 -0
  423. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js.map +1 -1
  424. package/node_modules/graphql-transformer-common/package.json +3 -3
  425. package/package.json +21 -19
  426. package/src/amplify-graphql-api.ts +0 -2
  427. package/src/index.ts +0 -1
  428. package/src/internal/authorization-modes.ts +8 -47
  429. package/src/internal/data-source-config.ts +42 -9
  430. package/src/model-datasource-strategy-types.ts +33 -1
  431. package/src/sql-model-datasource-strategy.ts +32 -1
  432. package/src/types.ts +5 -56
  433. /package/node_modules/{graphql-mapping-template → @aws-amplify/graphql-directives}/LICENSE +0 -0
@@ -9,7 +9,7 @@ const generateAuthExpressionForQueries = (ctx, providers, roles, fields, def, in
9
9
  expressions.push((0, graphql_mapping_template_1.compoundExpression)((0, common_1.generateAuthRulesFromRoles)(roles, fields, providers.hasIdentityPoolId, true)));
10
10
  expressions.push((0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('authResult'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.authRules.queryAuth'), (0, graphql_mapping_template_1.ref)('authRules'))));
11
11
  expressions.push((0, common_1.validateAuthResult)(), (0, common_1.constructAuthFilter)(), common_1.emptyPayload);
12
- return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, common_1.generateIAMAccessCheck)(providers.genericIamAccessEnabled, (0, graphql_mapping_template_1.compoundExpression)(expressions)));
12
+ return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, graphql_mapping_template_1.compoundExpression)(expressions));
13
13
  };
14
14
  exports.generateAuthExpressionForQueries = generateAuthExpressionForQueries;
15
15
  const generateAuthExpressionForField = (providers, roles, fields, fieldName = undefined) => {
@@ -18,7 +18,7 @@ const generateAuthExpressionForField = (providers, roles, fields, fieldName = un
18
18
  expressions.push((0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('authResult'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.authRules.validateUsingSource'), (0, graphql_mapping_template_1.ref)('authRules'), (0, graphql_mapping_template_1.ref)('ctx.source'))));
19
19
  expressions.push((0, graphql_mapping_template_1.compoundExpression)([(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.ref)('authResult')), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.unauthorized')))]));
20
20
  expressions.push(common_1.emptyPayload);
21
- return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, common_1.generateIAMAccessCheck)(providers.genericIamAccessEnabled, (0, graphql_mapping_template_1.compoundExpression)(expressions)));
21
+ return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, graphql_mapping_template_1.compoundExpression)(expressions));
22
22
  };
23
23
  exports.generateAuthExpressionForField = generateAuthExpressionForField;
24
24
  const generateFieldAuthResponse = (operation, fieldName, subscriptionsEnabled) => {
@@ -36,7 +36,7 @@ const generateAuthExpressionForRelationQuery = (ctx, def, field, relatedModelObj
36
36
  expressions.push((0, graphql_mapping_template_1.compoundExpression)((0, common_1.generateAuthRulesFromRoles)(roles, fields, providers.hasIdentityPoolId, true)));
37
37
  expressions.push((0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('authResult'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.authRules.queryAuth'), (0, graphql_mapping_template_1.ref)('authRules'))));
38
38
  expressions.push((0, common_1.validateAuthResult)(), (0, common_1.constructAuthFilter)(), common_1.emptyPayload);
39
- return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, common_1.generateIAMAccessCheck)(providers.genericIamAccessEnabled, (0, graphql_mapping_template_1.compoundExpression)(expressions)));
39
+ return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, graphql_mapping_template_1.compoundExpression)(expressions));
40
40
  };
41
41
  exports.generateAuthExpressionForRelationQuery = generateAuthExpressionForRelationQuery;
42
42
  //# sourceMappingURL=query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/resolvers/query.ts"],"names":[],"mappings":";;;AAAA,uEAA4I;AAG5I,sFAAuE;AAEvE,qCAAqI;AAE9H,MAAM,gCAAgC,GAAG,CAE9C,GAA+B,EAC/B,SAAkC,EAClC,KAA4B,EAC5B,MAA0C,EAE1C,GAA6B,EAE7B,SAA6B,EACrB,EAAE;IACV,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,WAAW,CAAC,IAAI,CAAC,IAAA,6CAAkB,EAAC,IAAA,mCAA0B,EAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACnH,WAAW,CAAC,IAAI,CAAC,IAAA,8BAAG,EAAC,IAAA,8BAAG,EAAC,YAAY,CAAC,EAAE,IAAA,qCAAU,EAAC,IAAA,8BAAG,EAAC,0BAA0B,CAAC,EAAE,IAAA,8BAAG,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACxG,WAAW,CAAC,IAAI,CAAC,IAAA,2BAAkB,GAAE,EAAE,IAAA,4BAAmB,GAAE,EAAE,qBAAY,CAAC,CAAC;IAC5E,OAAO,IAAA,qCAAU,EAAC,qBAAqB,CAAC,CAAC,IAAA,+BAAsB,EAAC,SAAS,CAAC,uBAAuB,EAAE,IAAA,6CAAkB,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC;AACvI,CAAC,CAAC;AAhBW,QAAA,gCAAgC,oCAgB3C;AAEK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CAAkB,EAAC,WAAW,CAAC,CAAC,CAAC;AAC5E,CAAC,CAAC;AAlBW,QAAA,sCAAsC,0CAkBjD"}
@@ -12,7 +12,7 @@ const generateAuthExpressionForSubscriptions = (providers, roles) => {
12
12
  and: (0, graphql_mapping_template_1.list)([(0, graphql_mapping_template_1.ref)('authResult.authFilter'), (0, graphql_mapping_template_1.ref)('ctx.args.filter')]),
13
13
  })))));
14
14
  expressions.push(common_1.emptyPayload);
15
- return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, common_1.generateIAMAccessCheck)(providers.genericIamAccessEnabled, (0, graphql_mapping_template_1.compoundExpression)(expressions)));
15
+ return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, graphql_mapping_template_1.compoundExpression)(expressions));
16
16
  };
17
17
  exports.generateAuthExpressionForSubscriptions = generateAuthExpressionForSubscriptions;
18
18
  //# sourceMappingURL=subscription.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/resolvers/subscription.ts"],"names":[],"mappings":";;;AAAA,uEAAkI;AAElI,qCAAgH;AAEzG,MAAM,sCAAsC,GAAG,CAAC,SAAkC,EAAE,KAA4B,EAAU,EAAE;IACjI,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,WAAW,CAAC,IAAI,CAAC,IAAA,6CAAkB,EAAC,IAAA,mCAA0B,EAAC,KAAK,EAAE,EAAE,EAAE,SAAS,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/G,WAAW,CAAC,IAAI,CAAC,IAAA,8BAAG,EAAC,IAAA,8BAAG,EAAC,YAAY,CAAC,EAAE,IAAA,qCAAU,EAAC,IAAA,8BAAG,EAAC,iCAAiC,CAAC,EAAE,IAAA,8BAAG,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/G,WAAW,CAAC,IAAI,CAAC,IAAA,2BAAkB,GAAE,CAAC,CAAC;IAGvC,WAAW,CAAC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AC;AAC5E,CAAC,CAAC;AA1BW,QAAA,sCAAsC,0CA0BjD"}
@@ -14,6 +14,6 @@ export interface AuthVTLGenerator {
14
14
  setDeniedFieldFlag: (operation: string, subscriptionsEnabled: boolean) => string;
15
15
  generateAuthExpressionForRelationQuery: (ctx: TransformerContextProvider, def: ObjectTypeDefinitionNode, field: FieldDefinitionNode, relatedModelObject: ObjectTypeDefinitionNode, providers: ConfiguredAuthProviders, roles: Array<RoleDefinition>, fields: ReadonlyArray<FieldDefinitionNode>) => string;
16
16
  generateFieldResolverForOwner: (entity: string) => string;
17
- generateSandboxExpressionForField: (sandboxEnabled: boolean, genericIamAccessEnabled: boolean) => string;
17
+ generateSandboxExpressionForField: (sandboxEnabled: boolean) => string;
18
18
  }
19
19
  //# sourceMappingURL=vtl-generator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vtl-generator.d.ts","sourceRoot":"","sources":["../../src/vtl-generator/vtl-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExE,OAAO,EAAE,uBAAuB,EAA8B,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/F,MAAM,WAAW,gBAAgB;IAC/B,+BAA+B,EAAE,CAC/B,GAAG,EAAE,0BAA0B,EAC/B,SAAS,EAAE,uBAAuB,EAClC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,EAC5B,MAAM,EAAE,aAAa,CAAC,mBAAmB,CAAC,KACvC,MAAM,CAAC;IAEZ,+BAA+B,EAAE,CAC/B,SAAS,EAAE,uBAAuB,EAClC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,EAC5B,MAAM,EAAE,aAAa,CAAC,mBAAmB,CAAC,KACvC,MAAM,CAAC;IAEZ,6BAA6B,EAAE,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,wBAAwB,KAAK,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AAM,KAAK,MAAM,CAAC;IAE1D,iCAAiC,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,MAAM,CAAC;CACxE"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-auth-transformer",
3
- "version": "3.5.0-iam-auth-with-identityPool-provider-1.0",
3
+ "version": "3.4.2",
4
4
  "description": "Amplify GraphQL @auth transformer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,22 +29,23 @@
29
29
  "extract-api": "ts-node ../../scripts/extract-api.ts"
30
30
  },
31
31
  "dependencies": {
32
- "@aws-amplify/graphql-model-transformer": "2.6.1-iam-auth-with-identityPool-provider-1.0",
33
- "@aws-amplify/graphql-relational-transformer": "2.4.2-iam-auth-with-identityPool-provider-1.0",
34
- "@aws-amplify/graphql-transformer-core": "2.5.1-iam-auth-with-identityPool-provider-1.0",
35
- "@aws-amplify/graphql-transformer-interfaces": "3.4.1-iam-auth-with-identityPool-provider-1.0",
32
+ "@aws-amplify/graphql-directives": "1.0.1",
33
+ "@aws-amplify/graphql-model-transformer": "2.7.0",
34
+ "@aws-amplify/graphql-relational-transformer": "2.4.2",
35
+ "@aws-amplify/graphql-transformer-core": "2.5.1",
36
+ "@aws-amplify/graphql-transformer-interfaces": "3.5.0",
36
37
  "graphql": "^15.5.0",
37
- "graphql-mapping-template": "4.20.16-iam-auth-with-identityPool-provider-1.0",
38
- "graphql-transformer-common": "4.28.2-iam-auth-with-identityPool-provider-1.0",
38
+ "graphql-mapping-template": "4.20.15",
39
+ "graphql-transformer-common": "4.29.0",
39
40
  "lodash": "^4.17.21",
40
41
  "md5": "^2.3.0"
41
42
  },
42
43
  "devDependencies": {
43
- "@aws-amplify/graphql-function-transformer": "2.1.19-iam-auth-with-identityPool-provider-1.0",
44
- "@aws-amplify/graphql-index-transformer": "2.3.8-iam-auth-with-identityPool-provider-1.0",
45
- "@aws-amplify/graphql-searchable-transformer": "2.6.2-iam-auth-with-identityPool-provider-1.0",
46
- "@aws-amplify/graphql-sql-transformer": "0.2.8-iam-auth-with-identityPool-provider-1.0",
47
- "@aws-amplify/graphql-transformer-test-utils": "0.4.7-iam-auth-with-identityPool-provider-1.0",
44
+ "@aws-amplify/graphql-function-transformer": "2.1.19",
45
+ "@aws-amplify/graphql-index-transformer": "2.3.8",
46
+ "@aws-amplify/graphql-searchable-transformer": "2.6.2",
47
+ "@aws-amplify/graphql-sql-transformer": "0.2.8",
48
+ "@aws-amplify/graphql-transformer-test-utils": "0.4.7",
48
49
  "@types/node": "^12.12.6"
49
50
  },
50
51
  "peerDependencies": {
@@ -86,5 +87,5 @@
86
87
  "/__tests__/"
87
88
  ]
88
89
  },
89
- "gitHead": "dafa4bb5ea5cec5dc90b722bf138064897f4f24a"
90
+ "gitHead": "ac8990dd06d7b6a29c079e84a7c1e23ec5708fc1"
90
91
  }
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [2.3.2-iam-auth-with-identityPool-provider-1.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@2.3.1...@aws-amplify/graphql-default-value-transformer@2.3.2-iam-auth-with-identityPool-provider-1.0) (2024-03-15)
6
+ ## [2.3.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@2.3.1...@aws-amplify/graphql-default-value-transformer@2.3.2) (2024-03-28)
7
7
 
8
8
  **Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
9
9
 
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-default-value-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-default-value-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,qBAAqB,EACtB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAE1B,yCAAyC,EACzC,6CAA6C,EAC9C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,aAAa,EAEb,mBAAmB,EACnB,2BAA2B,EAE3B,wBAAwB,EAGzB,MAAM,SAAS,CAAC;AAmEjB,qBAAa,uBAAwB,SAAQ,qBAAqB;IAChE,OAAO,CAAC,YAAY,CAA2D;;IAM/E,KAAK,WACK,wBAAwB,GAAG,2BAA2B,cAClD,mBAAmB,aACpB,aAAa,OACnB,yCAAyC,KAC7C,IAAI,CAiBL;IAEF,eAAe,QAAS,6CAA6C,KAAG,IAAI,CAS1E;IAEF,iBAAiB,QAAS,0BAA0B,KAAG,IAAI,CAoBzD;IAEF,OAAO,CAAC,uBAAuB,CAS3B;IAEJ,OAAO,CAAC,+BAA+B,CAKrC;IAEF,OAAO,CAAC,iBAAiB,CAQvB;IAEF,OAAO,CAAC,wBAAwB,CAU9B;CACH"}
1
+ {"version":3,"file":"graphql-default-value-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-default-value-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,qBAAqB,EACtB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAE1B,yCAAyC,EACzC,6CAA6C,EAC9C,MAAM,6CAA6C,CAAC;AAErD,OAAO,EACL,aAAa,EAEb,mBAAmB,EACnB,2BAA2B,EAE3B,wBAAwB,EAGzB,MAAM,SAAS,CAAC;AA8DjB,qBAAa,uBAAwB,SAAQ,qBAAqB;IAChE,OAAO,CAAC,YAAY,CAA2D;;IAM/E,KAAK,WACK,wBAAwB,GAAG,2BAA2B,cAClD,mBAAmB,aACpB,aAAa,OACnB,yCAAyC,KAC7C,IAAI,CAiBL;IAEF,eAAe,QAAS,6CAA6C,KAAG,IAAI,CAS1E;IAEF,iBAAiB,QAAS,0BAA0B,KAAG,IAAI,CAoBzD;IAEF,OAAO,CAAC,uBAAuB,CAS3B;IAEJ,OAAO,CAAC,+BAA+B,CAKrC;IAEF,OAAO,CAAC,iBAAiB,CAQvB;IAEF,OAAO,CAAC,wBAAwB,CAU9B;CACH"}
@@ -2,14 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DefaultValueTransformer = void 0;
4
4
  const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
5
+ const graphql_directives_1 = require("@aws-amplify/graphql-directives");
5
6
  const graphql_1 = require("graphql");
6
7
  const graphql_mapping_template_1 = require("graphql-mapping-template");
7
8
  const graphql_transformer_common_1 = require("graphql-transformer-common");
8
9
  const validators_1 = require("./validators");
9
- const directiveName = 'default';
10
- const directiveDefinition = `
11
- directive @${directiveName}(value: String!) on FIELD_DEFINITION
12
- `;
13
10
  const nonStringTypes = ['Int', 'Float', 'Boolean', 'AWSTimestamp', 'AWSJSON'];
14
11
  const validateFieldType = (ctx, type) => {
15
12
  const enums = ctx.output.getTypeDefinitionsOfKind(graphql_1.Kind.ENUM_TYPE_DEFINITION);
@@ -55,7 +52,7 @@ const validate = (ctx, config) => {
55
52
  };
56
53
  class DefaultValueTransformer extends graphql_transformer_core_1.TransformerPluginBase {
57
54
  constructor() {
58
- super('amplify-default-value-transformer', directiveDefinition);
55
+ super('amplify-default-value-transformer', graphql_directives_1.DefaultDirective.definition);
59
56
  this.directiveMap = new Map();
60
57
  this.field = (parent, definition, directive, ctx) => {
61
58
  const directiveWrapped = new graphql_transformer_core_1.DirectiveWrapper(directive);
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-default-value-transformer.js","sourceRoot":"","sources":["../src/graphql-default-value-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAQ+C;AAO/C,qCASiB;AACjB,uEAAuF;AACvF,2EAA4H;AAE5H,6CAA8C;AAE9C,MAAM,aAAa,GAAG,SAAS,CAAC;AAChC,MAAM,mBAAmB,GAAG;eACb,aAAa;CAC3B,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC;AAE9E,MAAM,iBAAiB,GAAG,CAAC,GAA8C,EAAE,IAAc,EAAQ,EAAE;IACjG,MAAM,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,IAAA,8BAAG,EAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAA,8BAAG,EAAC,YAAY,CAAC,CAAC,CAC5H,CACF,CACF,CAAC;QAEI,oCAA+B,GAAG,CAAC,GAA+B,EAAE,iBAAyB,EAAE,QAAkB,EAAQ,EAAE;YACjI,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;YAChE,IAAI,QAAQ,EAAE;gBACZ,IAAI,CAAC,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;aACnD;QACH,CAAC,CAAC;QAEM,sBAAiB,GAAG,CAAC,GAA+B,EAAE,iBAAyB,EAAsC,EAAE;;YAC7H,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,mBAAmB,EAAE,CAAC;YAEpD,IAAI,CAAC,UAAU,EAAE;gBACf,OAAO,IAAI,CAAC;aACb;YAED,OAAO,MAAA,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,UAAU,EAAE,iBAAiB,CAAC,mCAAI,IAAI,CAAC;QAC1E,CAAC,CAAC;QAEM,6BAAwB,GAAG,CAAC,QAAqC,EAAE,QAAkB,EAAQ,EAAE;YACrG,MAAM,GAAG,GAAG,QAAe,CAAC;YAC5B,GAAG,CAAC,SAAS,CACX,MAAM,EACN,0CAAe,CAAC,2BAA2B,CAEzC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,EAC5B,GAAG,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,SAAS,iCAAiC,CAClE,CACF,CAAC;QACJ,CAAC,CAAC;IAjGF,CAAC;CAkGF;AAvGD,0DAuGC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-default-value-transformer",
3
- "version": "2.3.2-iam-auth-with-identityPool-provider-1.0",
3
+ "version": "2.3.2",
4
4
  "description": "Amplify GraphQL default value transformer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,16 +29,17 @@
29
29
  "extract-api": "ts-node ../../scripts/extract-api.ts"
30
30
  },
31
31
  "dependencies": {
32
- "@aws-amplify/graphql-transformer-core": "2.5.1-iam-auth-with-identityPool-provider-1.0",
33
- "@aws-amplify/graphql-transformer-interfaces": "3.4.1-iam-auth-with-identityPool-provider-1.0",
32
+ "@aws-amplify/graphql-directives": "1.0.1",
33
+ "@aws-amplify/graphql-transformer-core": "2.5.1",
34
+ "@aws-amplify/graphql-transformer-interfaces": "3.5.0",
34
35
  "graphql": "^15.5.0",
35
- "graphql-mapping-template": "4.20.16-iam-auth-with-identityPool-provider-1.0",
36
- "graphql-transformer-common": "4.28.2-iam-auth-with-identityPool-provider-1.0",
36
+ "graphql-mapping-template": "4.20.15",
37
+ "graphql-transformer-common": "4.29.0",
37
38
  "libphonenumber-js": "1.9.47"
38
39
  },
39
40
  "devDependencies": {
40
- "@aws-amplify/graphql-model-transformer": "2.6.1-iam-auth-with-identityPool-provider-1.0",
41
- "@aws-amplify/graphql-transformer-test-utils": "0.4.7-iam-auth-with-identityPool-provider-1.0"
41
+ "@aws-amplify/graphql-model-transformer": "2.7.0",
42
+ "@aws-amplify/graphql-transformer-test-utils": "0.4.7"
42
43
  },
43
44
  "jest": {
44
45
  "transform": {
@@ -75,5 +76,5 @@
75
76
  "/__tests__/"
76
77
  ]
77
78
  },
78
- "gitHead": "dafa4bb5ea5cec5dc90b722bf138064897f4f24a"
79
+ "gitHead": "ac8990dd06d7b6a29c079e84a7c1e23ec5708fc1"
79
80
  }
@@ -0,0 +1,158 @@
1
+ ## API Report File for "@aws-amplify/graphql-directives"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ // @public (undocumented)
8
+ export const AppSyncDirectives: readonly Directive[];
9
+
10
+ // @public (undocumented)
11
+ export const AuthDirective: Directive;
12
+
13
+ // @public (undocumented)
14
+ export const AuthDirectiveV1: Directive;
15
+
16
+ // @public (undocumented)
17
+ export const AwsApiKeyDirective: Directive;
18
+
19
+ // @public (undocumented)
20
+ export const AwsAuthDirective: Directive;
21
+
22
+ // @public (undocumented)
23
+ export const AwsCognitoUserPoolsDirective: Directive;
24
+
25
+ // @public (undocumented)
26
+ export const AwsIamDirective: Directive;
27
+
28
+ // @public (undocumented)
29
+ export const AwsLambdaDirective: Directive;
30
+
31
+ // @public (undocumented)
32
+ export const AwsOidcDirective: Directive;
33
+
34
+ // @public (undocumented)
35
+ export const AwsSubscribeDirective: Directive;
36
+
37
+ // @public (undocumented)
38
+ export const BelongsToDirective: Directive;
39
+
40
+ // @public (undocumented)
41
+ export const ConnectionDirectiveV1: Directive;
42
+
43
+ // @public (undocumented)
44
+ export const DefaultDirective: Directive;
45
+
46
+ // @public (undocumented)
47
+ export const DefaultDirectives: readonly Directive[];
48
+
49
+ // @public (undocumented)
50
+ export const DeprecatedDirective: Directive;
51
+
52
+ // @public (undocumented)
53
+ export interface Directive<Defaults extends DirectiveDefaults = DirectiveDefaults> {
54
+ // (undocumented)
55
+ readonly defaults: Defaults;
56
+ // (undocumented)
57
+ readonly definition: string;
58
+ // (undocumented)
59
+ readonly name: string;
60
+ }
61
+
62
+ // @public (undocumented)
63
+ export interface DirectiveDefaults {
64
+ }
65
+
66
+ // @public (undocumented)
67
+ export const FunctionDirective: Directive;
68
+
69
+ // @public (undocumented)
70
+ export const FunctionDirectiveV1: Directive;
71
+
72
+ // @public (undocumented)
73
+ export const HasManyDirective: Directive<HasManyDirectiveDefaults>;
74
+
75
+ // @public (undocumented)
76
+ export type HasManyDirectiveDefaults = {
77
+ limit: number;
78
+ };
79
+
80
+ // @public (undocumented)
81
+ export const HasOneDirective: Directive;
82
+
83
+ // @public (undocumented)
84
+ export const HttpDirective: Directive<HttpDirectiveDefaults>;
85
+
86
+ // @public (undocumented)
87
+ export type HttpDirectiveDefaults = {
88
+ method: string;
89
+ headers: string[];
90
+ };
91
+
92
+ // Warning: (ae-forgotten-export) The symbol "HttpDirectiveV1Defaults" needs to be exported by the entry point index.d.ts
93
+ //
94
+ // @public (undocumented)
95
+ export const HttpDirectiveV1: Directive<HttpDirectiveV1Defaults>;
96
+
97
+ // @public (undocumented)
98
+ export const IndexDirective: Directive;
99
+
100
+ // @public (undocumented)
101
+ export const KeyDirectiveV1: Directive;
102
+
103
+ // @public (undocumented)
104
+ export const ManyToManyDirective: Directive<ManyToManyDirectiveDefaults>;
105
+
106
+ // @public (undocumented)
107
+ export type ManyToManyDirectiveDefaults = {
108
+ limit: number;
109
+ };
110
+
111
+ // @public (undocumented)
112
+ export const MapsToDirective: Directive;
113
+
114
+ // @public (undocumented)
115
+ export const ModelDirective: Directive;
116
+
117
+ // @public (undocumented)
118
+ export const ModelDirectiveV1: Directive;
119
+
120
+ // @public (undocumented)
121
+ export const PredictionsDirective: Directive;
122
+
123
+ // @public (undocumented)
124
+ export const PredictionsDirectiveV1: Directive;
125
+
126
+ // @public (undocumented)
127
+ export const PrimaryKeyDirective: Directive;
128
+
129
+ // @public (undocumented)
130
+ export const RefersToDirective: Directive;
131
+
132
+ // @public (undocumented)
133
+ export const SearchableDirective: Directive;
134
+
135
+ // @public (undocumented)
136
+ export const SearchableDirectiveV1: Directive;
137
+
138
+ // @public (undocumented)
139
+ export const SqlDirective: Directive;
140
+
141
+ // @public (undocumented)
142
+ export const V1Directives: readonly Directive[];
143
+
144
+ // @public (undocumented)
145
+ export const V2Directives: readonly Directive[];
146
+
147
+ // @public (undocumented)
148
+ export const VersionedDirectiveV1: Directive<VersionedDirectiveV1Defaults>;
149
+
150
+ // @public (undocumented)
151
+ export type VersionedDirectiveV1Defaults = {
152
+ versionField: string;
153
+ versionInput: string;
154
+ };
155
+
156
+ // (No @packageDocumentation comment for this package)
157
+
158
+ ```
@@ -0,0 +1,8 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## 1.0.1 (2024-03-28)
7
+
8
+ **Note:** Version bump only for package @aws-amplify/graphql-directives
@@ -0,0 +1,19 @@
1
+ # Amplify GraphQL Directives
2
+
3
+ Source of truth for the GraphQL directive definition used by the Amplify GraphQL API.
4
+
5
+ > :warning: **Intended for internal Amplify use only.**
6
+
7
+ ## Description
8
+
9
+ This package defines the GraphQL directives in GraphQL syntax.
10
+ Each directive is imported into the corresponding GraphQL transformer.
11
+ This package is responsible for the name, definition, and argument defaults for a directive.
12
+ The GraphQL transformers utilize the GraphQL directives to define the behavior of the transform.
13
+
14
+ This package also contains the AppSync GraphQL directives.
15
+ These directives are defined internally by AppSync.
16
+ The definitions here are copied from the internal definition.
17
+
18
+ This package is intended to be the only source of truth for the GraphQL directive definitions used by the Amplify GraphQL API.
19
+ This package should be imported in place of reproducing the definitions in other packages.
@@ -0,0 +1,3 @@
1
+ import { Directive } from '../directive';
2
+ export declare const AwsApiKeyDirective: Directive;
3
+ //# sourceMappingURL=aws-api-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-api-key.d.ts","sourceRoot":"","sources":["../../../src/directives/appsync/aws-api-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,eAAO,MAAM,kBAAkB,EAAE,SAIhC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AwsApiKeyDirective = void 0;
4
+ const name = 'aws_api_key';
5
+ const definition = `
6
+ directive @${name} on FIELD_DEFINITION | OBJECT
7
+ `;
8
+ const defaults = {};
9
+ exports.AwsApiKeyDirective = {
10
+ name,
11
+ definition,
12
+ defaults,
13
+ };
14
+ //# sourceMappingURL=aws-api-key.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-api-key.js","sourceRoot":"","sources":["../../../src/directives/appsync/aws-api-key.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,aAAa,CAAC;AAC3B,MAAM,UAAU,GAAiB;eAClB,IAAI;CAClB,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,kBAAkB,GAAc;IAC3C,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Directive } from '../directive';
2
+ export declare const AwsAuthDirective: Directive;
3
+ //# sourceMappingURL=aws-auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-auth.d.ts","sourceRoot":"","sources":["../../../src/directives/appsync/aws-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,eAAO,MAAM,gBAAgB,EAAE,SAI9B,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AwsAuthDirective = void 0;
4
+ const name = 'aws_auth';
5
+ const definition = `
6
+ directive @${name}(cognito_groups: [String!]!) on FIELD_DEFINITION
7
+ `;
8
+ const defaults = {};
9
+ exports.AwsAuthDirective = {
10
+ name,
11
+ definition,
12
+ defaults,
13
+ };
14
+ //# sourceMappingURL=aws-auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-auth.js","sourceRoot":"","sources":["../../../src/directives/appsync/aws-auth.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,UAAU,CAAC;AACxB,MAAM,UAAU,GAAiB;eAClB,IAAI;CAClB,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 AwsCognitoUserPoolsDirective: Directive;
3
+ //# sourceMappingURL=aws-cognito-user-pools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-cognito-user-pools.d.ts","sourceRoot":"","sources":["../../../src/directives/appsync/aws-cognito-user-pools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,eAAO,MAAM,4BAA4B,EAAE,SAI1C,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AwsCognitoUserPoolsDirective = void 0;
4
+ const name = 'aws_cognito_user_pools';
5
+ const definition = `
6
+ directive @${name}(cognito_groups: [String!]) on FIELD_DEFINITION | OBJECT
7
+ `;
8
+ const defaults = {};
9
+ exports.AwsCognitoUserPoolsDirective = {
10
+ name,
11
+ definition,
12
+ defaults,
13
+ };
14
+ //# sourceMappingURL=aws-cognito-user-pools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-cognito-user-pools.js","sourceRoot":"","sources":["../../../src/directives/appsync/aws-cognito-user-pools.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,wBAAwB,CAAC;AACtC,MAAM,UAAU,GAAiB;eAClB,IAAI;CAClB,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,4BAA4B,GAAc;IACrD,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Directive } from '../directive';
2
+ export declare const AwsIamDirective: Directive;
3
+ //# sourceMappingURL=aws-iam.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-iam.d.ts","sourceRoot":"","sources":["../../../src/directives/appsync/aws-iam.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,eAAO,MAAM,eAAe,EAAE,SAI7B,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AwsIamDirective = void 0;
4
+ const name = 'aws_iam';
5
+ const definition = `
6
+ directive @${name} on FIELD_DEFINITION | OBJECT
7
+ `;
8
+ const defaults = {};
9
+ exports.AwsIamDirective = {
10
+ name,
11
+ definition,
12
+ defaults,
13
+ };
14
+ //# sourceMappingURL=aws-iam.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-iam.js","sourceRoot":"","sources":["../../../src/directives/appsync/aws-iam.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,SAAS,CAAC;AACvB,MAAM,UAAU,GAAiB;eAClB,IAAI;CAClB,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,eAAe,GAAc;IACxC,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Directive } from '../directive';
2
+ export declare const AwsLambdaDirective: Directive;
3
+ //# sourceMappingURL=aws-lambda.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-lambda.d.ts","sourceRoot":"","sources":["../../../src/directives/appsync/aws-lambda.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,eAAO,MAAM,kBAAkB,EAAE,SAIhC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AwsLambdaDirective = void 0;
4
+ const name = 'aws_lambda';
5
+ const definition = `
6
+ directive @${name} on FIELD_DEFINITION | OBJECT
7
+ `;
8
+ const defaults = {};
9
+ exports.AwsLambdaDirective = {
10
+ name,
11
+ definition,
12
+ defaults,
13
+ };
14
+ //# sourceMappingURL=aws-lambda.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-lambda.js","sourceRoot":"","sources":["../../../src/directives/appsync/aws-lambda.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,YAAY,CAAC;AAC1B,MAAM,UAAU,GAAiB;eAClB,IAAI;CAClB,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,kBAAkB,GAAc;IAC3C,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Directive } from '../directive';
2
+ export declare const AwsOidcDirective: Directive;
3
+ //# sourceMappingURL=aws-oidc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-oidc.d.ts","sourceRoot":"","sources":["../../../src/directives/appsync/aws-oidc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,eAAO,MAAM,gBAAgB,EAAE,SAI9B,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AwsOidcDirective = void 0;
4
+ const name = 'aws_oidc';
5
+ const definition = `
6
+ directive @${name} on FIELD_DEFINITION | OBJECT
7
+ `;
8
+ const defaults = {};
9
+ exports.AwsOidcDirective = {
10
+ name,
11
+ definition,
12
+ defaults,
13
+ };
14
+ //# sourceMappingURL=aws-oidc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-oidc.js","sourceRoot":"","sources":["../../../src/directives/appsync/aws-oidc.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,UAAU,CAAC;AACxB,MAAM,UAAU,GAAiB;eAClB,IAAI;CAClB,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 AwsSubscribeDirective: Directive;
3
+ //# sourceMappingURL=aws-subscribe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-subscribe.d.ts","sourceRoot":"","sources":["../../../src/directives/appsync/aws-subscribe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,eAAO,MAAM,qBAAqB,EAAE,SAInC,CAAC"}