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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. package/.jsii +19 -19
  2. package/CHANGELOG.md +1 -1
  3. package/lib/amplify-dynamodb-table-wrapper.js +1 -1
  4. package/lib/amplify-graphql-api.js +1 -1
  5. package/lib/amplify-graphql-definition.js +1 -1
  6. package/lib/sql-model-datasource-strategy.js +1 -1
  7. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +3 -1
  8. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.d.ts.map +1 -1
  9. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js +3 -0
  10. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js.map +1 -1
  11. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +14 -14
  12. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +1 -1
  13. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +9 -9
  14. package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +1 -1
  15. package/node_modules/@aws-amplify/graphql-directives/package.json +2 -2
  16. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +1 -1
  17. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +8 -8
  18. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +1 -1
  19. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +8 -8
  20. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +1 -1
  21. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +9 -9
  22. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +4 -2
  23. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  24. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +12 -12
  25. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +2 -1
  26. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  27. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  28. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  29. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.d.ts.map +1 -1
  30. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.js +10 -10
  31. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.js.map +1 -1
  32. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.d.ts.map +1 -1
  33. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.js +5 -5
  34. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.js.map +1 -1
  35. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +0 -8
  36. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts.map +1 -1
  37. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js +5 -36
  38. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js.map +1 -1
  39. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +8 -8
  40. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +1 -1
  41. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  42. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +8 -8
  43. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +3 -1
  44. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.d.ts.map +1 -1
  45. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.js +2 -2
  46. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.js.map +1 -1
  47. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts +2 -2
  48. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts.map +1 -1
  49. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js +9 -5
  50. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js.map +1 -1
  51. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +10 -10
  52. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +1 -1
  53. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  54. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +9 -9
  55. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +1 -1
  56. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +9 -9
  57. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +1 -1
  58. package/node_modules/@aws-amplify/graphql-transformer/package.json +15 -15
  59. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +19 -0
  60. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +5 -1
  61. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
  62. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
  63. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +14 -8
  64. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
  65. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts +1 -1
  66. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts.map +1 -1
  67. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js +7 -1
  68. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js.map +1 -1
  69. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts +9 -0
  70. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts.map +1 -1
  71. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js +34 -1
  72. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js.map +1 -1
  73. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +6 -5
  74. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +1 -1
  75. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +2 -2
  76. package/node_modules/graphql-mapping-template/API.md +14 -1
  77. package/node_modules/graphql-mapping-template/CHANGELOG.md +6 -0
  78. package/node_modules/graphql-mapping-template/LICENSE +201 -0
  79. package/node_modules/graphql-mapping-template/lib/ast.d.ts +7 -1
  80. package/node_modules/graphql-mapping-template/lib/ast.d.ts.map +1 -1
  81. package/node_modules/graphql-mapping-template/lib/ast.js +9 -1
  82. package/node_modules/graphql-mapping-template/lib/ast.js.map +1 -1
  83. package/node_modules/graphql-mapping-template/lib/print.d.ts.map +1 -1
  84. package/node_modules/graphql-mapping-template/lib/print.js +5 -0
  85. package/node_modules/graphql-mapping-template/lib/print.js.map +1 -1
  86. package/node_modules/graphql-mapping-template/package.json +5 -4
  87. package/node_modules/graphql-transformer-common/CHANGELOG.md +1 -1
  88. package/node_modules/graphql-transformer-common/package.json +3 -3
  89. package/package.json +20 -20
@@ -3,9 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getParameterStoreSecretPath = void 0;
6
+ exports.constructAuthFilterStatement = exports.constructFieldMappingInput = exports.constructArrayFieldsStatement = exports.constructNonScalarFieldsStatement = exports.getArrayFields = exports.getNonScalarFields = exports.getParameterStoreSecretPath = void 0;
7
7
  const path_1 = __importDefault(require("path"));
8
8
  const lodash_1 = __importDefault(require("lodash"));
9
+ const graphql_1 = require("graphql");
10
+ const graphql_mapping_template_1 = require("graphql-mapping-template");
11
+ const graphql_transformer_common_1 = require("graphql-transformer-common");
9
12
  const api_category_1 = require("./api-category");
10
13
  const getParameterNameForDBSecret = (secret, secretsKey) => {
11
14
  return `${secretsKey}_${secret}`;
@@ -22,4 +25,34 @@ const getParameterStoreSecretPath = (secret, secretsKey, apiName, environmentNam
22
25
  return path_1.default.posix.join('/amplify', appId, environmentName, `AMPLIFY_${categoryName}${apiName}${paramName}`);
23
26
  };
24
27
  exports.getParameterStoreSecretPath = getParameterStoreSecretPath;
28
+ const getNonScalarFields = (object, ctx) => {
29
+ var _a;
30
+ if (!object) {
31
+ return [];
32
+ }
33
+ const enums = ctx.output.getTypeDefinitionsOfKind(graphql_1.Kind.ENUM_TYPE_DEFINITION);
34
+ return ((_a = object.fields) === null || _a === void 0 ? void 0 : _a.filter((f) => (0, graphql_transformer_common_1.isArrayOrObject)(f.type, enums)).map((f) => f.name.value)) || [];
35
+ };
36
+ exports.getNonScalarFields = getNonScalarFields;
37
+ const getArrayFields = (object, ctx) => {
38
+ var _a;
39
+ if (!object) {
40
+ return [];
41
+ }
42
+ return ((_a = object.fields) === null || _a === void 0 ? void 0 : _a.filter((f) => (0, graphql_transformer_common_1.isListType)(f.type)).map((f) => f.name.value)) || [];
43
+ };
44
+ exports.getArrayFields = getArrayFields;
45
+ const constructNonScalarFieldsStatement = (tableName, ctx) => (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('lambdaInput.args.metadata.nonScalarFields'), (0, graphql_mapping_template_1.list)((0, exports.getNonScalarFields)(ctx.output.getObject(tableName), ctx).map(graphql_mapping_template_1.str)));
46
+ exports.constructNonScalarFieldsStatement = constructNonScalarFieldsStatement;
47
+ const constructArrayFieldsStatement = (tableName, ctx) => (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('lambdaInput.args.metadata.arrayFields'), (0, graphql_mapping_template_1.list)((0, exports.getArrayFields)(ctx.output.getObject(tableName), ctx).map(graphql_mapping_template_1.str)));
48
+ exports.constructArrayFieldsStatement = constructArrayFieldsStatement;
49
+ const constructFieldMappingInput = () => {
50
+ return (0, graphql_mapping_template_1.compoundExpression)([
51
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('lambdaInput.args.metadata.fieldMap'), (0, graphql_mapping_template_1.obj)({})),
52
+ (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('lambdaInput.args.metadata.fieldMap.putAll'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.defaultIfNull'), (0, graphql_mapping_template_1.ref)('context.stash.fieldMap'), (0, graphql_mapping_template_1.obj)({})))),
53
+ ]);
54
+ };
55
+ exports.constructFieldMappingInput = constructFieldMappingInput;
56
+ const constructAuthFilterStatement = (keyName) => (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNullOrEmpty'), (0, graphql_mapping_template_1.ref)('ctx.stash.authFilter'))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(keyName), (0, graphql_mapping_template_1.ref)('ctx.stash.authFilter')));
57
+ exports.constructAuthFilterStatement = constructAuthFilterStatement;
25
58
  //# sourceMappingURL=rds-util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rds-util.js","sourceRoot":"","sources":["../../src/utils/rds-util.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,oDAAuB;AACvB,iDAA6C;AAE7C,MAAM,2BAA2B,GAAG,CAAC,MAAc,EAAE,UAAkB,EAAU,EAAE;IACjF,OAAO,GAAG,UAAU,IAAI,MAAM,EAAE,CAAC;AACnC,CAAC,CAAC;AAMK,MAAM,2BAA2B,GAAG,CACzC,MAAc,EACd,UAAkB,EAClB,OAAe,EACf,eAAuB,EAC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C,sBAAsB,CAAC,CAAC,CAAC,CAAC;AADlH,QAAA,4BAA4B,gCACsF"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-transformer-core",
3
- "version": "2.7.0-gen2-release-0423.0",
3
+ "version": "2.7.0",
4
4
  "description": "A framework to transform from GraphQL SDL to AWS CloudFormation.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,11 +28,12 @@
28
28
  "extract-api": "ts-node ../../scripts/extract-api.ts"
29
29
  },
30
30
  "dependencies": {
31
- "@aws-amplify/graphql-directives": "1.1.0-gen2-release-0423.0",
32
- "@aws-amplify/graphql-transformer-interfaces": "3.7.0-gen2-release-0423.0",
31
+ "@aws-amplify/graphql-directives": "1.1.0",
32
+ "@aws-amplify/graphql-transformer-interfaces": "3.7.0",
33
33
  "fs-extra": "^8.1.0",
34
34
  "graphql": "^15.5.0",
35
- "graphql-transformer-common": "4.30.1-gen2-release-0423.0",
35
+ "graphql-mapping-template": "4.20.16",
36
+ "graphql-transformer-common": "4.30.1",
36
37
  "hjson": "^3.2.2",
37
38
  "lodash": "^4.17.21",
38
39
  "md5": "^2.3.0",
@@ -86,5 +87,5 @@
86
87
  "/__tests__/"
87
88
  ]
88
89
  },
89
- "gitHead": "f450cc3e4a785bd0068a1cdb070c424328b64a8c"
90
+ "gitHead": "ef703418f9e1b9af08a746c602bc67ee1d3baaab"
90
91
  }
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [3.7.0-gen2-release-0423.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.6.0...@aws-amplify/graphql-transformer-interfaces@3.7.0-gen2-release-0423.0) (2024-04-23)
6
+ # [3.7.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.6.0...@aws-amplify/graphql-transformer-interfaces@3.7.0) (2024-04-26)
7
7
 
8
8
  ### Features
9
9
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-transformer-interfaces",
3
- "version": "3.7.0-gen2-release-0423.0",
3
+ "version": "3.7.0",
4
4
  "description": "Amplify GraphQL transformer interface definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -60,5 +60,5 @@
60
60
  "/__tests__/"
61
61
  ]
62
62
  },
63
- "gitHead": "f450cc3e4a785bd0068a1cdb070c424328b64a8c"
63
+ "gitHead": "ef703418f9e1b9af08a746c602bc67ee1d3baaab"
64
64
  }
@@ -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,WAAW,UAAU;IACzB,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,EAAE,UAAU,CAAC;IACtB,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,UAAU,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;CACjB;AACD,wBAAgB,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,UAAU,CAQpH;AAKD,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,KAAK,CAAC;IACZ,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AACD,wBAAgB,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,OAAO,CAKtD;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B,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,WAAyB;IAC1C,OAAO;QACL,IAAI,EAAE,IAAI;QACV,WAAW;KACZ,CAAC;AACJ,CAAC;AALD,gBAKC;AASD,SAAgB,MAAM,CAAC,IAAgB;IACrC,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,IAAI;KACL,CAAC;AACJ,CAAC;AALD,wBAKC;AAUD,SAAgB,MAAM,CAAC,QAAoB,EAAE,SAAqB;IAChE,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ;QACR,SAAS;KACV,CAAC;AACJ,CAAC;AAND,wBAMC;AAUD,SAAgB,SAAS,CAAC,QAAoB,EAAE,SAAqB;IACnE,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,QAAQ;QACR,SAAS;KACV,CAAC;AACJ,CAAC;AAND,8BA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G,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,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AS;YACZ,OAAO,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACpC,KAAK,oBAAoB;YACvB,OAAO,uBAAuB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC/C,KAAK,aAAa;YAChB,OAAO,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACnC,KAAK,oBAAoB;YACvB,OAAO,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC1C,KAAK,KAAK;YACR,OAAO,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAChC,KAAK,SAAS;YACZ,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;QAC5B,KAAK,QAAQ;YACX,OAAO,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACnC;YACE,OAAO,EAAE,CAAC;KACb;AACH,CAAC;AAED,SAAgB,KAAK,CAAC,IAAgB;IACpC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AAFD,sBAEC;AAED,SAAgB,UAAU,CAAC,IAAY;IACrC,OAAO,CAAC,IAAgB,EAAU,EAAE;QAClC,MAAM,WAAW,GAAG,IAAA,wBAAkB,EAAC,CAAC,IAAA,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-0423.0](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.30.0...graphql-transformer-common@4.30.1-gen2-release-0423.0) (2024-04-23)
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-0423.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": "f450cc3e4a785bd0068a1cdb070c424328b64a8c"
69
+ "gitHead": "ef703418f9e1b9af08a746c602bc67ee1d3baaab"
70
70
  }