@aws-amplify/graphql-api-construct 1.9.0-gen2-release-0418-2.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. package/.jsii +73 -59
  2. package/API.md +1 -1
  3. package/CHANGELOG.md +3 -1
  4. package/README.md +156 -24
  5. package/lib/amplify-dynamodb-table-wrapper.js +1 -1
  6. package/lib/amplify-graphql-api.js +7 -10
  7. package/lib/amplify-graphql-definition.js +1 -1
  8. package/lib/internal/asset-provider.d.ts +26 -0
  9. package/lib/internal/asset-provider.js +58 -0
  10. package/lib/internal/data-source-config.js +12 -2
  11. package/lib/internal/index.d.ts +1 -1
  12. package/lib/internal/index.js +2 -2
  13. package/lib/model-datasource-strategy-types.d.ts +7 -2
  14. package/lib/model-datasource-strategy-types.js +1 -1
  15. package/lib/sql-model-datasource-strategy.js +4 -3
  16. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +7 -1
  17. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.d.ts.map +1 -1
  18. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js +3 -0
  19. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js.map +1 -1
  20. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +14 -14
  21. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +1 -1
  22. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +9 -9
  23. package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +1 -1
  24. package/node_modules/@aws-amplify/graphql-directives/package.json +2 -2
  25. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +1 -1
  26. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +8 -8
  27. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +1 -1
  28. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +8 -8
  29. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +2 -1
  30. package/node_modules/@aws-amplify/graphql-index-transformer/lib/schema.js +8 -3
  31. package/node_modules/@aws-amplify/graphql-index-transformer/lib/schema.js.map +1 -1
  32. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +9 -9
  33. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +4 -2
  34. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  35. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +12 -12
  36. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +3 -1
  37. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  38. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  39. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  40. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.d.ts.map +1 -1
  41. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.js +10 -10
  42. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.js.map +1 -1
  43. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.d.ts.map +1 -1
  44. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.js +5 -5
  45. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.js.map +1 -1
  46. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +0 -8
  47. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts.map +1 -1
  48. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js +9 -37
  49. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js.map +1 -1
  50. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js +1 -1
  51. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js.map +1 -1
  52. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +8 -8
  53. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +1 -1
  54. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  55. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +8 -8
  56. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +4 -1
  57. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.d.ts.map +1 -1
  58. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.js +1 -0
  59. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.js.map +1 -1
  60. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.d.ts.map +1 -1
  61. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.js +1 -0
  62. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.js.map +1 -1
  63. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.d.ts.map +1 -1
  64. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.js +2 -1
  65. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.js.map +1 -1
  66. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.d.ts.map +1 -1
  67. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js +11 -4
  68. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js.map +1 -1
  69. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.d.ts.map +1 -1
  70. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js +8 -1
  71. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js.map +1 -1
  72. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.d.ts.map +1 -1
  73. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js +2 -1
  74. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js.map +1 -1
  75. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.d.ts.map +1 -1
  76. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.js +2 -1
  77. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.js.map +1 -1
  78. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.d.ts.map +1 -1
  79. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.js +3 -2
  80. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.js.map +1 -1
  81. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.d.ts.map +1 -1
  82. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js +2 -1
  83. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js.map +1 -1
  84. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.d.ts.map +1 -1
  85. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.js +2 -1
  86. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.js.map +1 -1
  87. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.d.ts.map +1 -1
  88. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js +2 -1
  89. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js.map +1 -1
  90. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.d.ts.map +1 -1
  91. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.js +4 -4
  92. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.js.map +1 -1
  93. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts +2 -2
  94. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts.map +1 -1
  95. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js +9 -5
  96. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js.map +1 -1
  97. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.d.ts.map +1 -1
  98. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.js +5 -3
  99. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.js.map +1 -1
  100. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts +1 -0
  101. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts.map +1 -1
  102. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts +2 -2
  103. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
  104. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +101 -8
  105. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
  106. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +10 -10
  107. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +1 -1
  108. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  109. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +9 -9
  110. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +1 -1
  111. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +9 -9
  112. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +1 -1
  113. package/node_modules/@aws-amplify/graphql-transformer/package.json +15 -15
  114. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +20 -1
  115. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +8 -2
  116. package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.js +2 -2
  117. package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.js.map +1 -1
  118. package/node_modules/@aws-amplify/graphql-transformer-core/lib/cdk-compat/schema-asset.d.ts.map +1 -1
  119. package/node_modules/@aws-amplify/graphql-transformer-core/lib/cdk-compat/schema-asset.js +1 -2
  120. package/node_modules/@aws-amplify/graphql-transformer-core/lib/cdk-compat/schema-asset.js.map +1 -1
  121. package/node_modules/@aws-amplify/graphql-transformer-core/lib/cdk-compat/template-asset.d.ts +3 -3
  122. package/node_modules/@aws-amplify/graphql-transformer-core/lib/cdk-compat/template-asset.d.ts.map +1 -1
  123. package/node_modules/@aws-amplify/graphql-transformer-core/lib/cdk-compat/template-asset.js +4 -5
  124. package/node_modules/@aws-amplify/graphql-transformer-core/lib/cdk-compat/template-asset.js.map +1 -1
  125. package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.d.ts +3 -1
  126. package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.d.ts.map +1 -1
  127. package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.js +1 -0
  128. package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.js.map +1 -1
  129. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
  130. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
  131. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +14 -8
  132. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
  133. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.js +5 -5
  134. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.js.map +1 -1
  135. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.d.ts +1 -1
  136. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.d.ts.map +1 -1
  137. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.js +3 -2
  138. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.js.map +1 -1
  139. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.d.ts +1 -0
  140. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.d.ts.map +1 -1
  141. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.js +1 -2
  142. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.js.map +1 -1
  143. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts +1 -1
  144. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts.map +1 -1
  145. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js +7 -1
  146. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js.map +1 -1
  147. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts +9 -0
  148. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts.map +1 -1
  149. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js +34 -1
  150. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js.map +1 -1
  151. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +6 -5
  152. package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +9 -6
  153. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +3 -1
  154. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/asset-provider.d.ts +2 -2
  155. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/asset-provider.d.ts.map +1 -1
  156. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts +4 -2
  157. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts.map +1 -1
  158. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.js.map +1 -1
  159. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +1 -1
  160. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
  161. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js +2 -1
  162. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
  163. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +2 -2
  164. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/asset-provider.ts +2 -2
  165. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/graphql-api-provider.ts +4 -2
  166. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +5 -2
  167. package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
  168. package/node_modules/graphql-mapping-template/API.md +14 -1
  169. package/node_modules/graphql-mapping-template/CHANGELOG.md +6 -0
  170. package/node_modules/graphql-mapping-template/LICENSE +201 -0
  171. package/node_modules/graphql-mapping-template/lib/ast.d.ts +7 -1
  172. package/node_modules/graphql-mapping-template/lib/ast.d.ts.map +1 -1
  173. package/node_modules/graphql-mapping-template/lib/ast.js +9 -1
  174. package/node_modules/graphql-mapping-template/lib/ast.js.map +1 -1
  175. package/node_modules/graphql-mapping-template/lib/print.d.ts.map +1 -1
  176. package/node_modules/graphql-mapping-template/lib/print.js +5 -0
  177. package/node_modules/graphql-mapping-template/lib/print.js.map +1 -1
  178. package/node_modules/graphql-mapping-template/package.json +5 -4
  179. package/node_modules/graphql-transformer-common/CHANGELOG.md +1 -1
  180. package/node_modules/graphql-transformer-common/package.json +3 -3
  181. package/package.json +20 -20
  182. package/src/amplify-graphql-api.ts +6 -11
  183. package/src/internal/asset-provider.ts +64 -0
  184. package/src/internal/data-source-config.ts +12 -1
  185. package/src/internal/index.ts +1 -1
  186. package/src/model-datasource-strategy-types.ts +7 -2
  187. package/src/sql-model-datasource-strategy.ts +4 -1
  188. package/lib/internal/asset-manager.d.ts +0 -12
  189. package/lib/internal/asset-manager.js +0 -44
  190. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/asset-manager.d.ts +0 -10
  191. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/asset-manager.d.ts.map +0 -1
  192. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/asset-manager.js +0 -20
  193. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/asset-manager.js.map +0 -1
  194. package/src/internal/asset-manager.ts +0 -43
@@ -137,7 +137,7 @@ export interface EqualsNode {
137
137
  }
138
138
 
139
139
  // @public (undocumented)
140
- export type Expression = IfNode | IfElseNode | AndNode | OrNode | ParensNode | EqualsNode | NotEqualsNode | ForEachNode | StringNode | RawNode | QuotesNode | FloatNode | IntNode | BooleanNode | NullNode | ReferenceNode | QuietReferenceNode | ObjectNode | ListNode | SetNode | CommentNode | CompoundExpressionNode | ToJsonNode | IsNullOrEmptyNode | NotNode | NewLineNode | ReturnNode;
140
+ export type Expression = IfNode | IfElseNode | AndNode | OrNode | ParensNode | EqualsNode | NotEqualsNode | GreaterThanNode | ForEachNode | StringNode | RawNode | QuotesNode | FloatNode | IntNode | BooleanNode | NullNode | ReferenceNode | QuietReferenceNode | ObjectNode | ListNode | SetNode | CommentNode | CompoundExpressionNode | ToJsonNode | IsNullOrEmptyNode | NotNode | NewLineNode | ReturnNode;
141
141
 
142
142
  // @public (undocumented)
143
143
  export function float(value: number): FloatNode;
@@ -165,6 +165,19 @@ export interface ForEachNode {
165
165
  kind: 'ForEach';
166
166
  }
167
167
 
168
+ // @public (undocumented)
169
+ export function greaterThan(leftExpr: Expression, rightExpr: Expression): GreaterThanNode;
170
+
171
+ // @public (undocumented)
172
+ export interface GreaterThanNode {
173
+ // (undocumented)
174
+ kind: 'GreaterThan';
175
+ // (undocumented)
176
+ leftExpr: Expression;
177
+ // (undocumented)
178
+ rightExpr: Expression;
179
+ }
180
+
168
181
  // @public (undocumented)
169
182
  export class HttpMappingTemplate {
170
183
  // (undocumented)
@@ -3,6 +3,12 @@
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
+ ## [4.20.16](https://github.com/aws-amplify/amplify-category-api/compare/graphql-mapping-template@4.20.15...graphql-mapping-template@4.20.16) (2024-04-26)
7
+
8
+ ### Bug Fixes
9
+
10
+ - ddb references hasOne returns record if multiple exist ([#2497](https://github.com/aws-amplify/amplify-category-api/issues/2497)) ([c105138](https://github.com/aws-amplify/amplify-category-api/commit/c1051384780c732ea2ddb98301994bda55bb62d9))
11
+
6
12
  ## [4.20.15](https://github.com/aws-amplify/amplify-category-api/compare/graphql-mapping-template@4.20.14...graphql-mapping-template@4.20.15) (2024-02-28)
7
13
 
8
14
  **Note:** Version bump only for package graphql-mapping-template
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2017 - 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -40,6 +40,12 @@ export interface NotEqualsNode {
40
40
  rightExpr: Expression;
41
41
  }
42
42
  export declare function notEquals(leftExpr: Expression, rightExpr: Expression): NotEqualsNode;
43
+ export interface GreaterThanNode {
44
+ kind: 'GreaterThan';
45
+ leftExpr: Expression;
46
+ rightExpr: Expression;
47
+ }
48
+ export declare function greaterThan(leftExpr: Expression, rightExpr: Expression): GreaterThanNode;
43
49
  export interface NotNode {
44
50
  kind: 'Not';
45
51
  expr: Expression;
@@ -147,5 +153,5 @@ export type NewLineNode = {
147
153
  export declare function newline(): NewLineNode;
148
154
  export declare function block(name: string, exprs: Expression[]): CompoundExpressionNode;
149
155
  export declare function methodCall(methodName: ReferenceNode, ...params: Expression[]): CompoundExpressionNode;
150
- export type Expression = IfNode | IfElseNode | AndNode | OrNode | ParensNode | EqualsNode | NotEqualsNode | ForEachNode | StringNode | RawNode | QuotesNode | FloatNode | IntNode | BooleanNode | NullNode | ReferenceNode | QuietReferenceNode | ObjectNode | ListNode | SetNode | CommentNode | CompoundExpressionNode | ToJsonNode | IsNullOrEmptyNode | NotNode | NewLineNode | ReturnNode;
156
+ export type Expression = IfNode | IfElseNode | AndNode | OrNode | ParensNode | EqualsNode | NotEqualsNode | GreaterThanNode | ForEachNode | StringNode | RawNode | QuotesNode | FloatNode | IntNode | BooleanNode | NullNode | ReferenceNode | QuietReferenceNode | ObjectNode | ListNode | SetNode | CommentNode | CompoundExpressionNode | ToJsonNode | IsNullOrEmptyNode | NotNode | NewLineNode | ReturnNode;
151
157
  //# sourceMappingURL=ast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../src/ast.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,UAAU,CAAC;IACtB,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;CACjB;AACD,wBAAgB,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAOrF;AAKD,MAAM,WAA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M,GAAE,MAAa,EAAE,aAAa,UAAO,GAAG,sBAAsB,CAOjI;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AACF,wBAAgB,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAKnD;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,oBAAoB,CAAC;IAC3B,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,wBAAgB,aAAa,CAAC,IAAI,EAAE,UAAU,GAAG,iBAAiB,CAKjE;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AACF,wBAAgB,OAAO,IAAI,WAAW,CAIrC;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,sBAAsB,CAE/E;AAED,wBAAgB,UAAU,CAAC,UAAU,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,sBAAsB,CAErG;AAKD,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,UAAU,GACV,OAAO,GACP,MAAM,GACN,UAAU,GACV,UAAU,GACV,aAAa,GACb,eAAe,GACf,WAAW,GACX,UAAU,GACV,OAAO,GACP,UAAU,GACV,SAAS,GACT,OAAO,GACP,WAAW,GACX,QAAQ,GACR,aAAa,GACb,kBAAkB,GAClB,UAAU,GACV,QAAQ,GACR,OAAO,GACP,WAAW,GACX,sBAAsB,GACtB,UAAU,GACV,iBAAiB,GACjB,OAAO,GACP,WAAW,GACX,UAAU,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.methodCall = exports.block = exports.newline = exports.isNullOrEmpty = exports.toJson = exports.compoundExpression = exports.comment = exports.set = exports.list = exports.obj = exports.qref = exports.ref = exports.nul = exports.bool = exports.int = exports.float = exports.quotes = exports.raw = exports.str = exports.forEach = exports.ret = exports.not = exports.notEquals = exports.equals = exports.parens = exports.or = exports.and = exports.ifElse = exports.iff = void 0;
3
+ exports.methodCall = exports.block = exports.newline = exports.isNullOrEmpty = exports.toJson = exports.compoundExpression = exports.comment = exports.set = exports.list = exports.obj = exports.qref = exports.ref = exports.nul = exports.bool = exports.int = exports.float = exports.quotes = exports.raw = exports.str = exports.forEach = exports.ret = exports.not = exports.greaterThan = exports.notEquals = exports.equals = exports.parens = exports.or = exports.and = exports.ifElse = exports.iff = void 0;
4
4
  function iff(predicate, expr, inline) {
5
5
  return {
6
6
  kind: 'If',
@@ -57,6 +57,14 @@ function notEquals(leftExpr, rightExpr) {
57
57
  };
58
58
  }
59
59
  exports.notEquals = notEquals;
60
+ function greaterThan(leftExpr, rightExpr) {
61
+ return {
62
+ kind: 'GreaterThan',
63
+ leftExpr,
64
+ rightExpr,
65
+ };
66
+ }
67
+ exports.greaterThan = greaterThan;
60
68
  function not(expr) {
61
69
  return {
62
70
  kind: 'Not',
@@ -1 +1 @@
1
- {"version":3,"file":"ast.js","sourceRoot":"","sources":["../src/ast.ts"],"names":[],"mappings":";;;AASA,SAAgB,GAAG,CAAC,SAAqB,EAAE,IAAgB,EAAE,MAAgB;IAC3E,OAAO;QACL,IAAI,EAAE,IAAI;QACV,SAAS;QACT,IAAI;QACJ,MAAM;KACP,CAAC;AACJ,CAAC;AAPD,kBAOC;AAYD,SAAgB,MAAM,CAAC,SAAqB,EAAE,MAAkB,EAAE,QAAoB,EAAE,MAAgB;IACtG,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,SAAS;QACT,MAAM;QACN,QAAQ;QACR,MAAM;KACP,CAAC;AACJ,CAAC;AARD,wBAQC;AASD,SAAgB,GAAG,CAAC,WAAyB;IAC3C,OAAO;QACL,IAAI,EAAE,KAAK;QACX,WAAW;KACZ,CAAC;AACJ,CAAC;AALD,kBAKC;AASD,SAAgB,EAAE,CAAC,WAAy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CAAC,CAAC;AAC9F,CAAC;AAFD,sBAEC;AAED,SAAgB,UAAU,CAAC,UAAyB,EAAE,GAAG,MAAoB;IAC3E,OAAO,kBAAkB,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;AAC/F,CAAC;AAFD,gCAEC"}
@@ -1 +1 @@
1
- {"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../src/print.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAcV,UAAU,EAiBX,MAAM,OAAO,CAAC;AAyFf,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,GAAE,MAAW,GAAG,MAAM,CAMzE;AA8GD,wBAAgB,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAE9C;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,UACvB,UAAU,KAAG,MAAM,CAIlC"}
1
+ {"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../src/print.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAcV,UAAU,EAkBX,MAAM,OAAO,CAAC;AA6Ff,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,GAAE,MAAW,GAAG,MAAM,CAMzE;AAgHD,wBAAgB,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAE9C;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,UACvB,UAAU,KAAG,MAAM,CAIlC"}
@@ -31,6 +31,9 @@ function printParens(node, indent = '') {
31
31
  function printEquals(node, indent = '') {
32
32
  return `${indent}${printExpr(node.leftExpr)} == ${printExpr(node.rightExpr)}`;
33
33
  }
34
+ function printGreaterThan(node, indent = '') {
35
+ return `${indent}${printExpr(node.leftExpr)} > ${printExpr(node.rightExpr)}`;
36
+ }
34
37
  function printNotEquals(node, indent = '') {
35
38
  return `${indent}${printExpr(node.leftExpr)} != ${printExpr(node.rightExpr)}`;
36
39
  }
@@ -129,6 +132,8 @@ function printExpr(expr, indent = '') {
129
132
  return printEquals(expr, indent);
130
133
  case 'NotEquals':
131
134
  return printNotEquals(expr, indent);
135
+ case 'GreaterThan':
136
+ return printGreaterThan(expr, indent);
132
137
  case 'ForEach':
133
138
  return printForEach(expr, indent);
134
139
  case 'String':
@@ -1 +1 @@
1
- {"version":3,"file":"print.js","sourceRoot":"","sources":["../src/print.ts"],"names":[],"mappings":";;;AAAA,+BAgCe;AAEf,MAAM,GAAG,GAAG,IAAI,CAAC;AAEjB,SAAS,OAAO,CAAC,IAAY,EAAE,SAAiB,EAAE;IAChD,IAAI,IAAI,CAAC,MAAM,EAAE;QACf,OAAO,QAAQ,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC;KACnF;IACD,OAAO,GAAG,MAAM,QAAQ,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,KAAK,MAAM,MAAM,CAAC;AAClH,CAAC;AAED,SAAS,WAAW,CAAC,IAAgB,EAAE,SAAiB,EAAE;IACxD,IAAI,IAAI,CAAC,MAAM,EAAE;QACf,OAAO,QAAQ,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,QAAQ,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAG,MAAM,CAAC;KACnI;IACD,OAAO,CACL,GAAG,MAAM,QAAQ,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM;QAChD,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC,IA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,aAAO,EAAC,WAAW,IAAI,GAAG,CAAC,EAAE,IAAI,EAAE,IAAA,aAAO,EAAC,SAAS,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;QACvG,OAAO,SAAS,CAAC,WAAW,CAAC,CAAC;IAChC,CAAC,CAAC;AACJ,CAAC;AALD,gCAKC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-mapping-template",
3
- "version": "4.20.15",
3
+ "version": "4.20.16",
4
4
  "description": "An AST wrapper around AWS AppSync resolvers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,8 +42,8 @@
42
42
  "coverageProvider": "v8",
43
43
  "coverageThreshold": {
44
44
  "global": {
45
- "branches": 60,
46
- "functions": 32,
45
+ "branches": 59,
46
+ "functions": 31,
47
47
  "lines": 50
48
48
  }
49
49
  },
@@ -57,5 +57,6 @@
57
57
  "coveragePathIgnorePatterns": [
58
58
  "/__tests__/"
59
59
  ]
60
- }
60
+ },
61
+ "gitHead": "ef703418f9e1b9af08a746c602bc67ee1d3baaab"
61
62
  }
@@ -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
- ## [4.30.1-gen2-release-0418-2.0](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.30.0...graphql-transformer-common@4.30.1-gen2-release-0418-2.0) (2024-04-18)
6
+ ## [4.30.1](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.30.0...graphql-transformer-common@4.30.1) (2024-04-26)
7
7
 
8
8
  **Note:** Version bump only for package graphql-transformer-common
9
9
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-transformer-common",
3
- "version": "4.30.1-gen2-release-0418-2.0",
3
+ "version": "4.30.1",
4
4
  "description": "Common code and constants for AppSync Transformers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "graphql": "^15.5.0",
28
- "graphql-mapping-template": "4.20.15",
28
+ "graphql-mapping-template": "4.20.16",
29
29
  "md5": "^2.2.1",
30
30
  "pluralize": "8.0.0"
31
31
  },
@@ -66,5 +66,5 @@
66
66
  "/__tests__/"
67
67
  ]
68
68
  },
69
- "gitHead": "1752c32dcd54a85370c3ea3f298e25fe25909d93"
69
+ "gitHead": "ef703418f9e1b9af08a746c602bc67ee1d3baaab"
70
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-api-construct",
3
- "version": "1.9.0-gen2-release-0418-2.0",
3
+ "version": "1.9.0",
4
4
  "description": "AppSync GraphQL Api Construct using Amplify GraphQL Transformer.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -76,21 +76,21 @@
76
76
  "dependencies": {
77
77
  "@aws-amplify/backend-output-schemas": "^0.4.0",
78
78
  "@aws-amplify/backend-output-storage": "^0.2.2",
79
- "@aws-amplify/graphql-auth-transformer": "3.5.0-gen2-release-0418-2.0",
80
- "@aws-amplify/graphql-default-value-transformer": "2.3.4-gen2-release-0418-2.0",
81
- "@aws-amplify/graphql-directives": "1.1.0-gen2-release-0418-2.0",
82
- "@aws-amplify/graphql-function-transformer": "2.1.21-gen2-release-0418-2.0",
83
- "@aws-amplify/graphql-http-transformer": "2.1.21-gen2-release-0418-2.0",
84
- "@aws-amplify/graphql-index-transformer": "2.4.0-gen2-release-0418-2.0",
85
- "@aws-amplify/graphql-maps-to-transformer": "3.4.12-gen2-release-0418-2.0",
86
- "@aws-amplify/graphql-model-transformer": "2.9.0-gen2-release-0418-2.0",
87
- "@aws-amplify/graphql-predictions-transformer": "2.1.21-gen2-release-0418-2.0",
88
- "@aws-amplify/graphql-relational-transformer": "2.5.0-gen2-release-0418-2.0",
89
- "@aws-amplify/graphql-searchable-transformer": "2.7.0-gen2-release-0418-2.0",
90
- "@aws-amplify/graphql-sql-transformer": "0.3.0-gen2-release-0418-2.0",
91
- "@aws-amplify/graphql-transformer": "1.5.2-gen2-release-0418-2.0",
92
- "@aws-amplify/graphql-transformer-core": "2.6.1-gen2-release-0418-2.0",
93
- "@aws-amplify/graphql-transformer-interfaces": "3.7.0-gen2-release-0418-2.0",
79
+ "@aws-amplify/graphql-auth-transformer": "3.5.0",
80
+ "@aws-amplify/graphql-default-value-transformer": "2.3.4",
81
+ "@aws-amplify/graphql-directives": "1.1.0",
82
+ "@aws-amplify/graphql-function-transformer": "2.1.21",
83
+ "@aws-amplify/graphql-http-transformer": "2.1.21",
84
+ "@aws-amplify/graphql-index-transformer": "2.4.0",
85
+ "@aws-amplify/graphql-maps-to-transformer": "3.4.12",
86
+ "@aws-amplify/graphql-model-transformer": "2.9.0",
87
+ "@aws-amplify/graphql-predictions-transformer": "2.1.21",
88
+ "@aws-amplify/graphql-relational-transformer": "2.5.0",
89
+ "@aws-amplify/graphql-searchable-transformer": "2.7.0",
90
+ "@aws-amplify/graphql-sql-transformer": "0.3.0",
91
+ "@aws-amplify/graphql-transformer": "1.5.2",
92
+ "@aws-amplify/graphql-transformer-core": "2.7.0",
93
+ "@aws-amplify/graphql-transformer-interfaces": "3.7.0",
94
94
  "@aws-amplify/platform-core": "^0.2.0",
95
95
  "@aws-amplify/plugin-types": "^0.4.1",
96
96
  "charenc": "^0.0.2",
@@ -98,8 +98,8 @@
98
98
  "fs-extra": "^8.1.0",
99
99
  "graceful-fs": "^4.2.11",
100
100
  "graphql": "^15.5.0",
101
- "graphql-mapping-template": "4.20.15",
102
- "graphql-transformer-common": "4.30.1-gen2-release-0418-2.0",
101
+ "graphql-mapping-template": "4.20.16",
102
+ "graphql-transformer-common": "4.30.1",
103
103
  "hjson": "^3.2.2",
104
104
  "immer": "^9.0.12",
105
105
  "is-buffer": "^2.0.5",
@@ -114,7 +114,7 @@
114
114
  "zod": "^3.22.3"
115
115
  },
116
116
  "devDependencies": {
117
- "@aws-amplify/graphql-transformer-test-utils": "0.5.1-gen2-release-0418-2.0",
117
+ "@aws-amplify/graphql-transformer-test-utils": "0.5.1",
118
118
  "@types/fs-extra": "^8.0.1",
119
119
  "@types/node": "^12.12.6",
120
120
  "aws-cdk-lib": "2.80.0",
@@ -179,5 +179,5 @@
179
179
  "/__tests__/"
180
180
  ]
181
181
  },
182
- "gitHead": "1752c32dcd54a85370c3ea3f298e25fe25909d93"
182
+ "gitHead": "ef703418f9e1b9af08a746c602bc67ee1d3baaab"
183
183
  }
@@ -2,8 +2,6 @@ import * as path from 'path';
2
2
  import { Construct } from 'constructs';
3
3
  import { ExecuteTransformConfig, executeTransform } from '@aws-amplify/graphql-transformer';
4
4
  import { NestedStack, Stack } from 'aws-cdk-lib';
5
- import { Asset } from 'aws-cdk-lib/aws-s3-assets';
6
- import { AssetProps } from '@aws-amplify/graphql-transformer-interfaces';
7
5
  import { AttributionMetadataStorage, StackMetadataBackendOutputStorageStrategy } from '@aws-amplify/backend-output-storage';
8
6
  import { graphqlOutputKey } from '@aws-amplify/backend-output-schemas';
9
7
  import type { GraphqlOutput, AwsAppsyncAuthenticationType } from '@aws-amplify/backend-output-schemas';
@@ -43,7 +41,7 @@ import {
43
41
  convertAuthorizationModesToTransformerAuthConfig,
44
42
  convertToResolverConfig,
45
43
  defaultTranslationBehavior,
46
- AssetManager,
44
+ AssetProvider,
47
45
  getGeneratedResources,
48
46
  getGeneratedFunctionSlots,
49
47
  CodegenAssets,
@@ -184,17 +182,14 @@ export class AmplifyGraphqlApi extends Construct {
184
182
  throw new Error(`or cdk --context env must have a length <= 8, found ${amplifyEnvironmentName}`);
185
183
  }
186
184
 
187
- const assetManager = new AssetManager();
185
+ const assetProvider = new AssetProvider(this);
188
186
 
189
187
  const executeTransformConfig: ExecuteTransformConfig = {
190
188
  scope: this,
191
189
  nestedStackProvider: {
192
190
  provide: (nestedStackScope: Construct, name: string) => new NestedStack(nestedStackScope, name),
193
191
  },
194
- assetProvider: {
195
- provide: (assetScope: Construct, assetId: string, assetProps: AssetProps) =>
196
- new Asset(assetScope, assetId, { path: assetManager.addAsset(assetProps.fileName, assetProps.fileContent) }),
197
- },
192
+ assetProvider,
198
193
  synthParameters: {
199
194
  amplifyEnvironmentName: amplifyEnvironmentName,
200
195
  apiName: props.apiName ?? id,
@@ -229,7 +224,7 @@ export class AmplifyGraphqlApi extends Construct {
229
224
  this.codegenAssets = new CodegenAssets(this, 'AmplifyCodegenAssets', { modelSchema: definition.schema });
230
225
 
231
226
  this.resources = getGeneratedResources(this);
232
- this.generatedFunctionSlots = getGeneratedFunctionSlots(assetManager.resolverAssets);
227
+ this.generatedFunctionSlots = getGeneratedFunctionSlots(assetProvider.resolverAssets);
233
228
  this.storeOutput(outputStorageStrategy);
234
229
 
235
230
  this.apiId = this.resources.cfnResources.cfnGraphqlApi.attrApiId;
@@ -403,7 +398,7 @@ export class AmplifyGraphqlApi extends Construct {
403
398
  * @param scope the scope this construct is created in.
404
399
  */
405
400
  const validateNoOtherAmplifyGraphqlApiInStack = (scope: Construct): void => {
406
- const rootStack = getStackForScope(scope, true);
401
+ const rootStack = getStackForScope(scope, false);
407
402
 
408
403
  let wasOtherAmplifyGraphlApiFound = false;
409
404
  walkAndProcessNodes(rootStack, (node: Construct) => {
@@ -413,7 +408,7 @@ const validateNoOtherAmplifyGraphqlApiInStack = (scope: Construct): void => {
413
408
  });
414
409
 
415
410
  if (wasOtherAmplifyGraphlApiFound) {
416
- throw new Error('Only one AmplifyGraphqlApi is expected in a stack');
411
+ throw new Error('Only one AmplifyGraphqlApi is expected in a stack. Place the AmplifyGraphqlApis in separate nested stacks.');
417
412
  }
418
413
  };
419
414