@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 @@
1
+ {"version":3,"file":"has-many-directive-ddb-fields-transformer.js","sourceRoot":"","sources":["../../src/has-many/has-many-directive-ddb-fields-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAoE;AAOpE,qEAA6D;AAC7D,4CAAwD;AAExD,oCAAqH;AAQrH,MAAa,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/graphql-transformer-interfaces';
2
+ import { DataSourceBasedDirectiveTransformer } from '../data-source-based-directive-transformer';
3
+ import { HasManyDirectiveConfiguration } from '../types';
4
+ export declare class HasManyDirectiveDDBReferencesTransformer implements DataSourceBasedDirectiveTransformer<HasManyDirectiveConfiguration> {
5
+ dbType: import("@aws-amplify/graphql-transformer-interfaces").ModelDataSourceStrategyDbType;
6
+ prepare: (context: TransformerPrepareStepContextProvider, config: HasManyDirectiveConfiguration) => void;
7
+ transformSchema: (context: TransformerTransformSchemaStepContextProvider, config: HasManyDirectiveConfiguration) => void;
8
+ generateResolvers: (context: TransformerContextProvider, config: HasManyDirectiveConfiguration) => void;
9
+ validate: (context: TransformerContextProvider, config: HasManyDirectiveConfiguration) => void;
10
+ }
11
+ //# sourceMappingURL=has-many-directive-ddb-references-transformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-many-directive-ddb-references-transformer.d.ts","sourceRoot":"","sources":["../../src/has-many/has-many-directive-ddb-references-transformer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,6CAA6C,EAC9C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAGjG,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AASzD,qBAAa,wCAAyC,YAAW,mCAAmC,CAAC,6BAA6B,CAAC;IACjI,MAAM,sFAAe;IAErB,OAAO,YAAa,qCAAqC,UAAU,6BAA6B,KAAG,IAAI,CAUrG;IAEF,eAAe,YAAa,6CAA6C,UAAU,6BAA6B,KAAG,IAAI,CAErH;IAEF,iBAAiB,YAAa,0BAA0B,UAAU,6BAA6B,KAAG,IAAI,CAGpG;IAEF,QAAQ,YAAa,0BAA0B,UAAU,6BAA6B,KAAG,IAAI,CAI3F;CACH"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HasManyDirectiveDDBReferencesTransformer = void 0;
4
+ const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
5
+ const ddb_references_generator_1 = require("../resolver/ddb-references-generator");
6
+ const resolvers_1 = require("../resolvers");
7
+ const utils_1 = require("../utils");
8
+ class HasManyDirectiveDDBReferencesTransformer {
9
+ constructor() {
10
+ this.dbType = graphql_transformer_core_1.DDB_DB_TYPE;
11
+ this.prepare = (context, config) => {
12
+ var _a, _b;
13
+ const modelName = config.object.name.value;
14
+ (0, resolvers_1.setFieldMappingResolverReference)(context, (_b = (_a = config.relatedType) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.value, modelName, config.field.name.value, true);
15
+ (0, utils_1.registerHasManyForeignKeyMappings)({
16
+ transformParameters: context.transformParameters,
17
+ resourceHelper: context.resourceHelper,
18
+ thisTypeName: modelName,
19
+ thisFieldName: config.field.name.value,
20
+ relatedType: config.relatedType,
21
+ });
22
+ };
23
+ this.transformSchema = (context, config) => {
24
+ (0, utils_1.validateParentReferencesFields)(config, context);
25
+ };
26
+ this.generateResolvers = (context, config) => {
27
+ (0, resolvers_1.updateTableForReferencesConnection)(config, context);
28
+ new ddb_references_generator_1.DDBRelationalReferencesResolverGenerator().makeHasManyGetItemsConnectionWithKeyResolver(config, context);
29
+ };
30
+ this.validate = (context, config) => {
31
+ (0, utils_1.ensureReferencesArray)(config);
32
+ config.referenceNodes = (0, utils_1.getReferencesNodes)(config, context);
33
+ };
34
+ }
35
+ }
36
+ exports.HasManyDirectiveDDBReferencesTransformer = HasManyDirectiveDDBReferencesTransformer;
37
+ //# sourceMappingURL=has-many-directive-ddb-references-transformer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-many-directive-ddb-references-transformer.js","sourceRoot":"","sources":["../../src/has-many/has-many-directive-ddb-references-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAoE;AAOpE,mFAAgG;AAChG,4CAAoG;AAEpG,oCAAwI;AAQxI,MAAa,wCAAwC;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erContextProvider, TransformerPrepareStepContextProvider, TransformerTransformSchemaStepContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
2
+ import { DataSourceBasedDirectiveTransformer } from '../data-source-based-directive-transformer';
3
+ import { HasManyDirectiveConfiguration } from '../types';
4
+ export declare class HasManyDirectiveSQLTransformer implements DataSourceBasedDirectiveTransformer<HasManyDirectiveConfiguration> {
5
+ dbType: import("@aws-amplify/graphql-transformer-interfaces").ModelDataSourceStrategySqlDbType;
6
+ prepare: (context: TransformerPrepareStepContextProvider, config: HasManyDirectiveConfiguration) => void;
7
+ transformSchema: (context: TransformerTransformSchemaStepContextProvider, config: HasManyDirectiveConfiguration) => void;
8
+ generateResolvers: (context: TransformerContextProvider, config: HasManyDirectiveConfiguration) => void;
9
+ validate: (context: TransformerContextProvider, config: HasManyDirectiveConfiguration) => void;
10
+ }
11
+ //# sourceMappingURL=has-many-directive-sql-transformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-many-directive-sql-transformer.d.ts","sourceRoot":"","sources":["../../src/has-many/has-many-directive-sql-transformer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,6CAA6C,EAC9C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAGjG,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAOzD,qBAAa,8BAA+B,YAAW,mCAAmC,CAAC,6BAA6B,CAAC;IACvH,MAAM,yFAAqC;IAE3C,OAAO,YAAa,qCAAqC,UAAU,6BAA6B,KAAG,IAAI,CAGrG;IAEF,eAAe,YAAa,6CAA6C,UAAU,6BAA6B,KAAG,IAAI,CAErH;IAEF,iBAAiB,YAAa,0BAA0B,UAAU,6BAA6B,KAAG,IAAI,CAGpG;IAEF,QAAQ,YAAa,0BAA0B,UAAU,6BAA6B,KAAG,IAAI,CAG3F;CACH"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HasManyDirectiveSQLTransformer = void 0;
4
+ const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
5
+ const generator_factory_1 = require("../resolver/generator-factory");
6
+ const resolvers_1 = require("../resolvers");
7
+ const utils_1 = require("../utils");
8
+ class HasManyDirectiveSQLTransformer {
9
+ constructor() {
10
+ this.dbType = graphql_transformer_core_1.POSTGRES_DB_TYPE || graphql_transformer_core_1.MYSQL_DB_TYPE;
11
+ this.prepare = (context, config) => {
12
+ var _a, _b;
13
+ const modelName = config.object.name.value;
14
+ (0, resolvers_1.setFieldMappingResolverReference)(context, (_b = (_a = config.relatedType) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.value, modelName, config.field.name.value, true);
15
+ };
16
+ this.transformSchema = (context, config) => {
17
+ (0, utils_1.validateParentReferencesFields)(config, context);
18
+ };
19
+ this.generateResolvers = (context, config) => {
20
+ const generator = (0, generator_factory_1.getGenerator)(this.dbType);
21
+ generator.makeHasManyGetItemsConnectionWithKeyResolver(config, context);
22
+ };
23
+ this.validate = (context, config) => {
24
+ (0, utils_1.ensureReferencesArray)(config);
25
+ (0, utils_1.getReferencesNodes)(config, context);
26
+ };
27
+ }
28
+ }
29
+ exports.HasManyDirectiveSQLTransformer = HasManyDirectiveSQLTransformer;
30
+ //# sourceMappingURL=has-many-directive-sql-transformer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-many-directive-sql-transformer.js","sourceRoot":"","sources":["../../src/has-many/has-many-directive-sql-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAwF;AAOxF,qEAA6D;AAC7D,4CAAgE;AAEhE,oCAAqG;AAMrG,MAAa,8BAA8B;IAA3C;QACE,WAAM,GAAG,2CAAgB,IAAI,wCAAa,CAAC;QAE3C,YAAO,GAAG,CAAC,OAA8C,EAAE,MAAqC,EAAQ,EAAE;;YACxG,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;YAC3C,IAAA,4CAAgC,EAAC,OAAO,EAAE,MAAA,MAAA,MAAM,CAAC,WAAW,0CAAE,IAAI,0CAAE,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACvH,CAAC,CAAC;QAEF,oBAAe,GAAG,CAAC,OAAsD,EAAE,MAAqC,EAAQ,EAAE;YACxH,IAAA,sCAA8B,EAAC,MAAM,EAAE,OAAqC,CAAC,CAAC;QAChF,CAAC,CAAC;QAEF,sBAAiB,GAAG,CAAC,OAAmC,EAAE,MAAqC,EAAQ,EAAE;YACvG,MAAM,SAAS,GAAG,IAAA,gCAAY,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC5C,SAAS,CAAC,4CAA4C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC1E,CAAC,CAAC;QAEF,aAAQ,GAAG,CAAC,OAAmC,EAAE,MAAqC,EAAQ,EAAE;YAC9F,IAAA,6BAAqB,EAAC,MAAM,CAAC,CAAC;YAC9B,IAAA,0BAAkB,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACtC,CAAC,CAAC;IACJ,CAAC;CAAA;AArBD,wEAqBC"}
@@ -0,0 +1,5 @@
1
+ import { ModelDataSourceStrategyDbType } from '@aws-amplify/graphql-transformer-interfaces';
2
+ import { HasManyDirectiveConfiguration } from '../types';
3
+ import { DataSourceBasedDirectiveTransformer } from '../data-source-based-directive-transformer';
4
+ export declare const getHasManyDirectiveTransformer: (dbType: ModelDataSourceStrategyDbType, config: HasManyDirectiveConfiguration) => DataSourceBasedDirectiveTransformer<HasManyDirectiveConfiguration>;
5
+ //# sourceMappingURL=has-many-directive-transformer-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-many-directive-transformer-factory.d.ts","sourceRoot":"","sources":["../../src/has-many/has-many-directive-transformer-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAUjG,eAAO,MAAM,8BAA8B,WACjC,6BAA6B,UAC7B,6BAA6B,KAEpC,oCAAoC,6BAA6B,CAyBnE,CAAC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getHasManyDirectiveTransformer = void 0;
4
+ const has_many_directive_ddb_fields_transformer_1 = require("./has-many-directive-ddb-fields-transformer");
5
+ const has_many_directive_sql_transformer_1 = require("./has-many-directive-sql-transformer");
6
+ const has_many_directive_ddb_references_transformer_1 = require("./has-many-directive-ddb-references-transformer");
7
+ const hasManyDirectiveMySqlTransformer = new has_many_directive_sql_transformer_1.HasManyDirectiveSQLTransformer();
8
+ const hasManyDirectivePostgresTransformer = new has_many_directive_sql_transformer_1.HasManyDirectiveSQLTransformer();
9
+ const hasManyDirectiveDdbFieldsTransformer = new has_many_directive_ddb_fields_transformer_1.HasManyDirectiveDDBFieldsTransformer();
10
+ const hasManyDirectiveDdbReferencesTransformer = new has_many_directive_ddb_references_transformer_1.HasManyDirectiveDDBReferencesTransformer();
11
+ const getHasManyDirectiveTransformer = (dbType, config) => {
12
+ switch (dbType) {
13
+ case 'MYSQL':
14
+ return hasManyDirectiveMySqlTransformer;
15
+ case 'POSTGRES':
16
+ return hasManyDirectivePostgresTransformer;
17
+ case 'DYNAMODB':
18
+ if (config.references) {
19
+ if (config.fields) {
20
+ throw new Error('Something went wrong >> cannot have both references and fields.');
21
+ }
22
+ if (config.references.length < 1) {
23
+ throw new Error(`Invalid @hasMany directive on ${config.field.name.value} - empty references list`);
24
+ }
25
+ return hasManyDirectiveDdbReferencesTransformer;
26
+ }
27
+ return hasManyDirectiveDdbFieldsTransformer;
28
+ }
29
+ };
30
+ exports.getHasManyDirectiveTransformer = getHasManyDirectiveTransformer;
31
+ //# sourceMappingURL=has-many-directive-transformer-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-many-directive-transformer-factory.js","sourceRoot":"","sources":["../../src/has-many/has-many-directive-transformer-factory.ts"],"names":[],"mappings":";;;AAGA,2GAAmG;AACnG,6FAAsF;AACtF,mHAA2G;AAE3G,MAAM,gCAAgC,GAAG,IAAI,mEAA8B,EAAE,CAAC;AAC9E,MAAM,mCAAmC,GAAG,IAAI,mEAA8B,EAAE,CAAC;AACjF,MAAM,oCAAoC,GAAG,IAAI,gFAAoC,EAAE,CAAC;AACxF,MAAM,wCAAwC,GAAG,IAAI,wFAAwC,EAAE,CAAC;AAEzF,MAAM,8BAA8B,GAAG,CAC5C,MAAqC,EACrC,MAAqC,EAE+B,EAAE;IACtE,QAAQ,MAAM,EAAE;QACd,KAAK,OAAO;YACV,OAAO,gCAAgC,CAAC;QAC1C,KAAK,UAAU;YACb,OAAO,mCAAmC,CAAC;QAC7C,KAAK,UAAU;YAGb,IAAI,MAAM,CAAC,UAAU,EAAE;gBAErB,IAAI,MAAM,CAAC,MAAM,EAAE;oBAEjB,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;iBACpF;gBACD,IAAI,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;oBAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,0BAA0B,CAAC,CAAC;iBACrG;gBACD,OAAO,wCAAwC,CAAC;aACjD;YAID,OAAO,oCAAoC,CAAC;KAC/C;AACH,CAAC,CAAC;AA7BW,QAAA,8BAA8B,kCA6BzC"}
@@ -0,0 +1,11 @@
1
+ import { TransformerContextProvider, TransformerPrepareStepContextProvider, TransformerTransformSchemaStepContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
2
+ import { DataSourceBasedDirectiveTransformer } from '../data-source-based-directive-transformer';
3
+ import { HasOneDirectiveConfiguration } from '../types';
4
+ export declare class HasOneDirectiveDDBFieldsTransformer implements DataSourceBasedDirectiveTransformer<HasOneDirectiveConfiguration> {
5
+ dbType: import("@aws-amplify/graphql-transformer-interfaces").ModelDataSourceStrategyDbType;
6
+ prepare: (context: TransformerPrepareStepContextProvider, config: HasOneDirectiveConfiguration) => void;
7
+ transformSchema: (context: TransformerTransformSchemaStepContextProvider, config: HasOneDirectiveConfiguration) => void;
8
+ generateResolvers: (context: TransformerContextProvider, config: HasOneDirectiveConfiguration) => void;
9
+ validate: (context: TransformerContextProvider, config: HasOneDirectiveConfiguration) => void;
10
+ }
11
+ //# sourceMappingURL=has-one-directive-ddb-fields-transformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-one-directive-ddb-fields-transformer.d.ts","sourceRoot":"","sources":["../../src/has-one/has-one-directive-ddb-fields-transformer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,6CAA6C,EAC9C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AACjG,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAUxD,qBAAa,mCAAoC,YAAW,mCAAmC,CAAC,4BAA4B,CAAC;IAC3H,MAAM,sFAAe;IAErB,OAAO,YAAa,qCAAqC,UAAU,4BAA4B,KAAG,IAAI,CASpG;IAEF,eAAe,YAAa,6CAA6C,UAAU,4BAA4B,KAAG,IAAI,CAEpH;IAEF,iBAAiB,YAAa,0BAA0B,UAAU,4BAA4B,KAAG,IAAI,CAGnG;IAEF,QAAQ,YAAa,0BAA0B,UAAU,4BAA4B,KAAG,IAAI,CAG1F;CACH"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HasOneDirectiveDDBFieldsTransformer = void 0;
4
+ const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
5
+ const utils_1 = require("../utils");
6
+ const generator_factory_1 = require("../resolver/generator-factory");
7
+ class HasOneDirectiveDDBFieldsTransformer {
8
+ constructor() {
9
+ this.dbType = graphql_transformer_core_1.DDB_DB_TYPE;
10
+ this.prepare = (context, config) => {
11
+ const modelName = config.object.name.value;
12
+ (0, utils_1.registerHasOneForeignKeyMappings)({
13
+ transformParameters: context.transformParameters,
14
+ resourceHelper: context.resourceHelper,
15
+ thisTypeName: modelName,
16
+ thisFieldName: config.field.name.value,
17
+ relatedType: config.relatedType,
18
+ });
19
+ };
20
+ this.transformSchema = (context, config) => {
21
+ config.relatedTypeIndex = (0, utils_1.getRelatedTypeIndex)(config, context);
22
+ };
23
+ this.generateResolvers = (context, config) => {
24
+ const generator = (0, generator_factory_1.getGenerator)(this.dbType);
25
+ generator.makeHasOneGetItemConnectionWithKeyResolver(config, context);
26
+ };
27
+ this.validate = (context, config) => {
28
+ (0, utils_1.ensureFieldsArray)(config);
29
+ config.fieldNodes = (0, utils_1.getFieldsNodes)(config, context);
30
+ };
31
+ }
32
+ }
33
+ exports.HasOneDirectiveDDBFieldsTransformer = HasOneDirectiveDDBFieldsTransformer;
34
+ //# sourceMappingURL=has-one-directive-ddb-fields-transformer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-one-directive-ddb-fields-transformer.js","sourceRoot":"","sources":["../../src/has-one/has-one-directive-ddb-fields-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAoE;AAQpE,oCAAoH;AACpH,qEAA6D;AAQ7D,MAAa,mCAAmC;IAAhD;QACE,WAAM,GAAG,sCAAW,CAAC;QAErB,YAAO,GAAG,CAAC,OAA8C,EAAE,MAAoC,EAAQ,EAAE;YACvG,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;YAC3C,IAAA,wCAAgC,EAAC;gBAC/B,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;gBAChD,cAAc,EAAE,OAAO,CAAC,cAAc;gBACtC,YAAY,EAAE,SAAS;gBACvB,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK;gBACtC,WAAW,EAAE,MAAM,CAAC,WAAW;aAChC,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,oBAAe,GAAG,CAAC,OAAsD,EAAE,MAAoC,EAAQ,EAAE;YACvH,MAAM,CAAC,gBAAgB,GAAG,IAAA,2BAAmB,EAAC,MAAM,EAAE,OAAqC,CAAC,CAAC;QAC/F,CAAC,CAAC;QAEF,sBAAiB,GAAG,CAAC,OAAmC,EAAE,MAAoC,EAAQ,EAAE;YACtG,MAAM,SAAS,GAAG,IAAA,gCAAY,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC5C,SAAS,CAAC,0CAA0C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACxE,CAAC,CAAC;QAEF,aAAQ,GAAG,CAAC,OAAmC,EAAE,MAAoC,EAAQ,EAAE;YAC7F,IAAA,yBAAiB,EAAC,MAAM,CAAC,CAAC;YAC1B,MAAM,CAAC,UAAU,GAAG,IAAA,sBAAc,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACtD,CAAC,CAAC;IACJ,CAAC;CAAA;AA3BD,kFA2BC"}
@@ -0,0 +1,11 @@
1
+ import { TransformerContextProvider, TransformerPrepareStepContextProvider, TransformerTransformSchemaStepContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
2
+ import { DataSourceBasedDirectiveTransformer } from '../data-source-based-directive-transformer';
3
+ import { HasOneDirectiveConfiguration } from '../types';
4
+ export declare class HasOneDirectiveDDBReferencesTransformer implements DataSourceBasedDirectiveTransformer<HasOneDirectiveConfiguration> {
5
+ dbType: import("@aws-amplify/graphql-transformer-interfaces").ModelDataSourceStrategyDbType;
6
+ prepare: (context: TransformerPrepareStepContextProvider, config: HasOneDirectiveConfiguration) => void;
7
+ transformSchema: (context: TransformerTransformSchemaStepContextProvider, config: HasOneDirectiveConfiguration) => void;
8
+ generateResolvers: (context: TransformerContextProvider, config: HasOneDirectiveConfiguration) => void;
9
+ validate: (context: TransformerContextProvider, config: HasOneDirectiveConfiguration) => void;
10
+ }
11
+ //# sourceMappingURL=has-one-directive-ddb-references-transformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-one-directive-ddb-references-transformer.d.ts","sourceRoot":"","sources":["../../src/has-one/has-one-directive-ddb-references-transformer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,6CAA6C,EAC9C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAGjG,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AASxD,qBAAa,uCAAwC,YAAW,mCAAmC,CAAC,4BAA4B,CAAC;IAC/H,MAAM,sFAAe;IAErB,OAAO,YAAa,qCAAqC,UAAU,4BAA4B,KAAG,IAAI,CAUpG;IAEF,eAAe,YAAa,6CAA6C,UAAU,4BAA4B,KAAG,IAAI,CAEpH;IAEF,iBAAiB,YAAa,0BAA0B,UAAU,4BAA4B,KAAG,IAAI,CAGnG;IAEF,QAAQ,YAAa,0BAA0B,UAAU,4BAA4B,KAAG,IAAI,CAG1F;CACH"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HasOneDirectiveDDBReferencesTransformer = void 0;
4
+ const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
5
+ const ddb_references_generator_1 = require("../resolver/ddb-references-generator");
6
+ const resolvers_1 = require("../resolvers");
7
+ const utils_1 = require("../utils");
8
+ class HasOneDirectiveDDBReferencesTransformer {
9
+ constructor() {
10
+ this.dbType = graphql_transformer_core_1.DDB_DB_TYPE;
11
+ this.prepare = (context, config) => {
12
+ var _a, _b;
13
+ const modelName = config.object.name.value;
14
+ (0, resolvers_1.setFieldMappingResolverReference)(context, (_b = (_a = config.relatedType) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.value, modelName, config.field.name.value, true);
15
+ (0, utils_1.registerHasOneForeignKeyMappings)({
16
+ transformParameters: context.transformParameters,
17
+ resourceHelper: context.resourceHelper,
18
+ thisTypeName: modelName,
19
+ thisFieldName: config.field.name.value,
20
+ relatedType: config.relatedType,
21
+ });
22
+ };
23
+ this.transformSchema = (context, config) => {
24
+ (0, utils_1.validateParentReferencesFields)(config, context);
25
+ };
26
+ this.generateResolvers = (context, config) => {
27
+ (0, resolvers_1.updateTableForReferencesConnection)(config, context);
28
+ new ddb_references_generator_1.DDBRelationalReferencesResolverGenerator().makeHasOneGetItemConnectionWithKeyResolver(config, context);
29
+ };
30
+ this.validate = (context, config) => {
31
+ (0, utils_1.ensureReferencesArray)(config);
32
+ config.referenceNodes = (0, utils_1.getReferencesNodes)(config, context);
33
+ };
34
+ }
35
+ }
36
+ exports.HasOneDirectiveDDBReferencesTransformer = HasOneDirectiveDDBReferencesTransformer;
37
+ //# sourceMappingURL=has-one-directive-ddb-references-transformer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-one-directive-ddb-references-transformer.js","sourceRoot":"","sources":["../../src/has-one/has-one-directive-ddb-references-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAoE;AAOpE,mFAAgG;AAChG,4CAAoG;AAEpG,oCAAuI;AAQvI,MAAa,uCAAuC;IAApD;QACE,WAAM,GAAG,sCAAW,CAAC;QAErB,YAAO,GAAG,CAAC,OAA8C,EAAE,MAAoC,EAAQ,EAAE;;YACvG,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;YAC3C,IAAA,4CAAgC,EAAC,OAAO,EAAE,MAAA,MAAA,MAAM,CAAC,WAAW,0CAAE,IAAI,0CAAE,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YACrH,IAAA,wCAAgC,EAAC;gBAC/B,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;gBAChD,cAAc,EAAE,OAAO,CAAC,cAAc;gBACtC,YAAY,EAAE,SAAS;gBACvB,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK;gBACtC,WAAW,EAAE,MAAM,CAAC,WAAW;aAChC,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,oBAAe,GAAG,CAAC,OAAsD,EAAE,MAAoC,EAAQ,EAAE;YACvH,IAAA,sCAA8B,EAAC,MAAM,EAAE,OAAqC,CAAC,CAAC;QAChF,CAAC,CAAC;QAEF,sBAAiB,GAAG,CAAC,OAAmC,EAAE,MAAoC,EAAQ,EAAE;YACtG,IAAA,8CAAkC,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YACpD,IAAI,mEAAwC,EAAE,CAAC,0CAA0C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7G,CAAC,CAAC;QAEF,aAAQ,GAAG,CAAC,OAAmC,EAAE,MAAoC,EAAQ,EAAE;YAC7F,IAAA,6BAAqB,EAAC,MAAM,CAAC,CAAC;YAC9B,MAAM,CAAC,cAAc,GAAG,IAAA,0BAAkB,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC9D,CAAC,CAAC;IACJ,CAAC;CAAA;AA5BD,0FA4BC"}
@@ -0,0 +1,11 @@
1
+ import { TransformerContextProvider, TransformerPrepareStepContextProvider, TransformerTransformSchemaStepContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
2
+ import { DataSourceBasedDirectiveTransformer } from '../data-source-based-directive-transformer';
3
+ import { HasOneDirectiveConfiguration } from '../types';
4
+ export declare class HasOneDirectiveSQLTransformer implements DataSourceBasedDirectiveTransformer<HasOneDirectiveConfiguration> {
5
+ dbType: import("@aws-amplify/graphql-transformer-interfaces").ModelDataSourceStrategySqlDbType;
6
+ prepare: (context: TransformerPrepareStepContextProvider, config: HasOneDirectiveConfiguration) => void;
7
+ transformSchema: (context: TransformerTransformSchemaStepContextProvider, config: HasOneDirectiveConfiguration) => void;
8
+ generateResolvers: (context: TransformerContextProvider, config: HasOneDirectiveConfiguration) => void;
9
+ validate: (context: TransformerContextProvider, config: HasOneDirectiveConfiguration) => void;
10
+ }
11
+ //# sourceMappingURL=has-one-directive-sql-transformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-one-directive-sql-transformer.d.ts","sourceRoot":"","sources":["../../src/has-one/has-one-directive-sql-transformer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,6CAA6C,EAC9C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAEjG,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAQxD,qBAAa,6BAA8B,YAAW,mCAAmC,CAAC,4BAA4B,CAAC;IACrH,MAAM,yFAAqC;IAE3C,OAAO,YAAa,qCAAqC,UAAU,4BAA4B,KAAG,IAAI,CAGpG;IAEF,eAAe,YAAa,6CAA6C,UAAU,4BAA4B,KAAG,IAAI,CAEpH;IAEF,iBAAiB,YAAa,0BAA0B,UAAU,4BAA4B,KAAG,IAAI,CAGnG;IAEF,QAAQ,YAAa,0BAA0B,UAAU,4BAA4B,KAAG,IAAI,CAG1F;CACH"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HasOneDirectiveSQLTransformer = void 0;
4
+ const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
5
+ const resolvers_1 = require("../resolvers");
6
+ const utils_1 = require("../utils");
7
+ const generator_factory_1 = require("../resolver/generator-factory");
8
+ class HasOneDirectiveSQLTransformer {
9
+ constructor() {
10
+ this.dbType = graphql_transformer_core_1.POSTGRES_DB_TYPE || graphql_transformer_core_1.MYSQL_DB_TYPE;
11
+ this.prepare = (context, config) => {
12
+ var _a, _b;
13
+ const modelName = config.object.name.value;
14
+ (0, resolvers_1.setFieldMappingResolverReference)(context, (_b = (_a = config.relatedType) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.value, modelName, config.field.name.value, true);
15
+ };
16
+ this.transformSchema = (context, config) => {
17
+ (0, utils_1.validateParentReferencesFields)(config, context);
18
+ };
19
+ this.generateResolvers = (context, config) => {
20
+ const generator = (0, generator_factory_1.getGenerator)(this.dbType);
21
+ generator.makeHasOneGetItemConnectionWithKeyResolver(config, context);
22
+ };
23
+ this.validate = (context, config) => {
24
+ (0, utils_1.ensureReferencesArray)(config);
25
+ (0, utils_1.getReferencesNodes)(config, context);
26
+ };
27
+ }
28
+ }
29
+ exports.HasOneDirectiveSQLTransformer = HasOneDirectiveSQLTransformer;
30
+ //# sourceMappingURL=has-one-directive-sql-transformer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-one-directive-sql-transformer.js","sourceRoot":"","sources":["../../src/has-one/has-one-directive-sql-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAwF;AAOxF,4CAAgE;AAEhE,oCAAqG;AACrG,qEAA6D;AAM7D,MAAa,6BAA6B;IAA1C;QACE,WAAM,GAAG,2CAAgB,IAAI,wCAAa,CAAC;QAE3C,YAAO,GAAG,CAAC,OAA8C,EAAE,MAAoC,EAAQ,EAAE;;YACvG,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;YAC3C,IAAA,4CAAgC,EAAC,OAAO,EAAE,MAAA,MAAA,MAAM,CAAC,WAAW,0CAAE,IAAI,0CAAE,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACvH,CAAC,CAAC;QAEF,oBAAe,GAAG,CAAC,OAAsD,EAAE,MAAoC,EAAQ,EAAE;YACvH,IAAA,sCAA8B,EAAC,MAAM,EAAE,OAAqC,CAAC,CAAC;QAChF,CAAC,CAAC;QAEF,sBAAiB,GAAG,CAAC,OAAmC,EAAE,MAAoC,EAAQ,EAAE;YACtG,MAAM,SAAS,GAAG,IAAA,gCAAY,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC5C,SAAS,CAAC,0CAA0C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACxE,CAAC,CAAC;QAEF,aAAQ,GAAG,CAAC,OAAmC,EAAE,MAAoC,EAAQ,EAAE;YAC7F,IAAA,6BAAqB,EAAC,MAAM,CAAC,CAAC;YAC9B,IAAA,0BAAkB,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACtC,CAAC,CAAC;IACJ,CAAC;CAAA;AArBD,sEAqBC"}
@@ -0,0 +1,5 @@
1
+ import { ModelDataSourceStrategyDbType } from '@aws-amplify/graphql-transformer-interfaces';
2
+ import { HasOneDirectiveConfiguration } from '../types';
3
+ import { DataSourceBasedDirectiveTransformer } from '../data-source-based-directive-transformer';
4
+ export declare const getHasOneDirectiveTransformer: (dbType: ModelDataSourceStrategyDbType, config: HasOneDirectiveConfiguration) => DataSourceBasedDirectiveTransformer<HasOneDirectiveConfiguration>;
5
+ //# sourceMappingURL=has-one-directive-transformer-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-one-directive-transformer-factory.d.ts","sourceRoot":"","sources":["../../src/has-one/has-one-directive-transformer-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAUjG,eAAO,MAAM,6BAA6B,WAChC,6BAA6B,UAC7B,4BAA4B,KAEnC,oCAAoC,4BAA4B,CAyBlE,CAAC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getHasOneDirectiveTransformer = void 0;
4
+ const has_one_directive_ddb_fields_transformer_1 = require("./has-one-directive-ddb-fields-transformer");
5
+ const has_one_directive_sql_transformer_1 = require("./has-one-directive-sql-transformer");
6
+ const has_one_directive_ddb_references_transformer_1 = require("./has-one-directive-ddb-references-transformer");
7
+ const hasOneDirectiveMySqlTransformer = new has_one_directive_sql_transformer_1.HasOneDirectiveSQLTransformer();
8
+ const hasOneDirectivePostgresTransformer = new has_one_directive_sql_transformer_1.HasOneDirectiveSQLTransformer();
9
+ const hasOneDirectiveDdbFieldsTransformer = new has_one_directive_ddb_fields_transformer_1.HasOneDirectiveDDBFieldsTransformer();
10
+ const hasOneDirectiveDdbReferencesTransformer = new has_one_directive_ddb_references_transformer_1.HasOneDirectiveDDBReferencesTransformer();
11
+ const getHasOneDirectiveTransformer = (dbType, config) => {
12
+ switch (dbType) {
13
+ case 'MYSQL':
14
+ return hasOneDirectiveMySqlTransformer;
15
+ case 'POSTGRES':
16
+ return hasOneDirectivePostgresTransformer;
17
+ case 'DYNAMODB':
18
+ if (config.references) {
19
+ if (config.fields) {
20
+ throw new Error('Something went wrong >> cannot have both references and fields.');
21
+ }
22
+ if (config.references.length < 1) {
23
+ throw new Error(`Invalid @hasMany directive on ${config.field.name.value} - empty references list`);
24
+ }
25
+ return hasOneDirectiveDdbReferencesTransformer;
26
+ }
27
+ return hasOneDirectiveDdbFieldsTransformer;
28
+ }
29
+ };
30
+ exports.getHasOneDirectiveTransformer = getHasOneDirectiveTransformer;
31
+ //# sourceMappingURL=has-one-directive-transformer-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-one-directive-transformer-factory.js","sourceRoot":"","sources":["../../src/has-one/has-one-directive-transformer-factory.ts"],"names":[],"mappings":";;;AAGA,yGAAiG;AACjG,2FAAoF;AACpF,iHAAyG;AAEzG,MAAM,+BAA+B,GAAG,IAAI,iEAA6B,EAAE,CAAC;AAC5E,MAAM,kCAAkC,GAAG,IAAI,iEAA6B,EAAE,CAAC;AAC/E,MAAM,mCAAmC,GAAG,IAAI,8EAAmC,EAAE,CAAC;AACtF,MAAM,uCAAuC,GAAG,IAAI,sFAAuC,EAAE,CAAC;AAEvF,MAAM,6BAA6B,GAAG,CAC3C,MAAqC,EACrC,MAAoC,EAE+B,EAAE;IACrE,QAAQ,MAAM,EAAE;QACd,KAAK,OAAO;YACV,OAAO,+BAA+B,CAAC;QACzC,KAAK,UAAU;YACb,OAAO,kCAAkC,CAAC;QAC5C,KAAK,UAAU;YAGb,IAAI,MAAM,CAAC,UAAU,EAAE;gBAErB,IAAI,MAAM,CAAC,MAAM,EAAE;oBAEjB,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;iBACpF;gBACD,IAAI,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;oBAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,0BAA0B,CAAC,CAAC;iBACrG;gBACD,OAAO,uCAAuC,CAAC;aAChD;YAID,OAAO,mCAAmC,CAAC;KAC9C;AACH,CAAC,CAAC;AA7BW,QAAA,6BAA6B,iCA6BxC"}
@@ -6,8 +6,9 @@ import { RelationalResolverGenerator } from './generator';
6
6
  export declare class DDBRelationalResolverGenerator extends RelationalResolverGenerator {
7
7
  makeExpression: (keySchema: any[], connectionAttributes: string[]) => ObjectNode;
8
8
  makeHasManyGetItemsConnectionWithKeyResolver: (config: HasManyDirectiveConfiguration, ctx: TransformerContextProvider) => void;
9
- makeHasOneGetItemConnectionWithKeyResolver: (config: HasOneDirectiveConfiguration | BelongsToDirectiveConfiguration, ctx: TransformerContextProvider) => void;
9
+ makeHasOneGetItemConnectionWithKeyResolver: (config: HasOneDirectiveConfiguration, ctx: TransformerContextProvider) => void;
10
+ makeBelongsToGetItemConnectionWithKeyResolver: (config: BelongsToDirectiveConfiguration, ctx: TransformerContextProvider) => void;
11
+ makeHasOneBelongToGetItemConnectionWithKeyResolver: (config: HasOneDirectiveConfiguration | BelongsToDirectiveConfiguration, ctx: TransformerContextProvider) => void;
10
12
  buildKeyValueExpression: (fieldName: string, object: ObjectTypeDefinitionNode, isPartitionKey?: boolean) => Expression;
11
- makeBelongsToGetItemConnectionWithKeyResolver: (config: HasOneDirectiveConfiguration, ctx: TransformerContextProvider) => void;
12
13
  }
13
14
  //# sourceMappingURL=ddb-generator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ddb-generator.d.ts","sourceRoot":"","sources":["../../src/resolver/ddb-generator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAEL,UAAU,EACV,UAAU,EAsBX,MAAM,0BAA0B,CAAC;AAWlC,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,+BAA+B,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExH,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAO1D,qBAAa,8BAA+B,SAAQ,2BAA2B;IAC7E,cAAc,cAAe,GAAG,EAAE,wBAAwB,MAAM,EAAE,KAAG,UAAU,CAkC7E;IAOF,4CAA4C,WAAY,6BAA6B,OAAO,0BAA0B,KAAG,IAAI,CA8H3H;IAOF,0CAA0C,WAChC,4BAA4B,GAAG,+BAA+B,OACjE,0BAA0B,KAC9B,IAAI,CAgHL;IAEF,uBAAuB,cAAe,MAAM,UAAU,wBAAwB,+BAA2B,UAAU,CAWjH;IAEF,6CAA6C,WAAY,4BAA4B,OAAO,0BAA0B,KAAG,IAAI,CAE3H;CACH"}
1
+ {"version":3,"file":"ddb-generator.d.ts","sourceRoot":"","sources":["../../src/resolver/ddb-generator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAEL,UAAU,EACV,UAAU,EAsBX,MAAM,0BAA0B,CAAC;AAWlC,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,+BAA+B,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExH,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAO1D,qBAAa,8BAA+B,SAAQ,2BAA2B;IAC7E,cAAc,cAAe,GAAG,EAAE,wBAAwB,MAAM,EAAE,KAAG,UAAU,CAkC7E;IAOF,4CAA4C,WAAY,6BAA6B,OAAO,0BAA0B,KAAG,IAAI,CA8H3H;IAOF,0CAA0C,WAAY,4BAA4B,OAAO,0BAA0B,KAAG,IAAI,CAExH;IAEF,6CAA6C,WAAY,+BAA+B,OAAO,0BAA0B,KAAG,IAAI,CAE9H;IAEF,kDAAkD,WACxC,4BAA4B,GAAG,+BAA+B,OACjE,0BAA0B,KAC9B,IAAI,CAgHL;IAEF,uBAAuB,cAAe,MAAM,UAAU,wBAAwB,+BAA2B,UAAU,CAWjH;CACH"}
@@ -103,6 +103,12 @@ class DDBRelationalResolverGenerator extends generator_1.RelationalResolverGener
103
103
  ctx.resolvers.addResolver(object.name.value, field.name.value, resolver);
104
104
  };
105
105
  this.makeHasOneGetItemConnectionWithKeyResolver = (config, ctx) => {
106
+ this.makeHasOneBelongToGetItemConnectionWithKeyResolver(config, ctx);
107
+ };
108
+ this.makeBelongsToGetItemConnectionWithKeyResolver = (config, ctx) => {
109
+ this.makeHasOneBelongToGetItemConnectionWithKeyResolver(config, ctx);
110
+ };
111
+ this.makeHasOneBelongToGetItemConnectionWithKeyResolver = (config, ctx) => {
106
112
  const { connectionFields, field, fields, object, relatedType, relatedTypeIndex } = config;
107
113
  if (relatedTypeIndex.length === 0) {
108
114
  throw new Error('Expected relatedType index fields to be set for connection.');
@@ -164,9 +170,6 @@ class DDBRelationalResolverGenerator extends generator_1.RelationalResolverGener
164
170
  const attributeType = field ? (0, graphql_transformer_common_1.attributeTypeFromScalar)(field.type) : 'S';
165
171
  return (0, graphql_mapping_template_1.ref)(`util.parseJson($util.dynamodb.toDynamoDBJson($util.${attributeType === 'S' ? 'defaultIfNullOrBlank' : 'defaultIfNull'}(${isPartitionKey ? `$${PARTITION_KEY_VALUE}` : `$ctx.source.${fieldName}`}, "${graphql_transformer_common_1.NONE_VALUE}")))`);
166
172
  };
167
- this.makeBelongsToGetItemConnectionWithKeyResolver = (config, ctx) => {
168
- this.makeHasOneGetItemConnectionWithKeyResolver(config, ctx);
169
- };
170
173
  }
171
174
  }
172
175
  exports.DDBRelationalResolverGenerator = DDBRelationalResolverGenerator;
@@ -1 +1 @@
1
- {"version":3,"file":"ddb-generator.js","sourceRoot":"","sources":["../../src/resolver/ddb-generator.ts"],"names":[],"mappings":";;;AAAA,oFAAmI;AAEnI,uEAyBkC;AAClC,2EASoC;AAGpC,4CAAgD;AAChD,2CAA0D;AAE1D,MAAM,cAAc,GAAG,cAAc,CAAC;AACtC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAC3C,MAAM,UAAU,GAAG,IAAA,8BAAG,EAAC,sBAAsB,CAAC,CAAC;AAC/C,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAEhD,MAAa,8BAA+B,SAAQ,uCAA2B;IAA/E;;QACE,mBAAc,GAAG,CAAC,SAAgB,EAAE,oBAA8B,EAAc,EAAE;YAChF,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,oBAAoB,CAAC,CAAC,CAAC,EAAE;gBAC3C,IAAI,qBAAqB,CAAC;gBAE1B,IAAI,oBAAoB,CAAC,MAAM,GAAG,CAAC,EAAE;oBACnC,MAAM,cAAc,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;oBAErD,qBAAqB,GAAG,cAAc;yBACnC,GAAG,CAAC,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,CAAC,MAAM,cAAc,GAAG,GAAG,GAAG,CAAC;yBACrD,IAAI,CAAC,6CAAgB,CAAC,0BAA0B,EAAE,CAAC,CAAC;iBACxD;gBAED,OAAO,IAAA,8BA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AI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC;YAGvE,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,IAAA,oDAAuB,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;YAExE,OAAO,IAAA,8BAAG,EACR,sDAAsD,aAAa,KAAK,GAAG,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,eAAe,IACpH,cAAc,CAAC,CAAC,CAAC,IAAI,mBAAmB,EAAE,CAAC,CAAC,CAAC,eAAe,SAAS,EACvE,MAAM,uCAAU,MAAM,CACvB,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC;CAAA;AAxTD,wEAwTC"}
@@ -0,0 +1,9 @@
1
+ import { TransformerContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
2
+ import { BelongsToDirectiveConfiguration, HasManyDirectiveConfiguration, HasOneDirectiveConfiguration } from '../types';
3
+ import { DDBRelationalResolverGenerator } from './ddb-generator';
4
+ export declare class DDBRelationalReferencesResolverGenerator extends DDBRelationalResolverGenerator {
5
+ makeHasManyGetItemsConnectionWithKeyResolver: (config: HasManyDirectiveConfiguration, ctx: TransformerContextProvider) => void;
6
+ makeHasOneGetItemConnectionWithKeyResolver: (config: HasOneDirectiveConfiguration, ctx: TransformerContextProvider) => void;
7
+ makeBelongsToGetItemConnectionWithKeyResolver: (config: BelongsToDirectiveConfiguration, ctx: TransformerContextProvider) => void;
8
+ }
9
+ //# sourceMappingURL=ddb-references-generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ddb-references-generator.d.ts","sourceRoot":"","sources":["../../src/resolver/ddb-references-generator.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AA4BzF,OAAO,EAAE,+BAA+B,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AACxH,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AAOjE,qBAAa,wCAAyC,SAAQ,8BAA8B;IAM1F,4CAA4C,WAAY,6BAA6B,OAAO,0BAA0B,KAAG,IAAI,CAoH3H;IAEF,0CAA0C,WAAY,4BAA4B,OAAO,0BAA0B,KAAG,IAAI,CAgHxH;IAOF,6CAA6C,WAAY,+BAA+B,OAAO,0BAA0B,KAAG,IAAI,CA4G9H;CACH"}