@aws-amplify/graphql-api-construct 1.17.3 → 1.17.4-ai-next.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/.jsii +17 -17
  2. package/CHANGELOG.md +4 -0
  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 +4 -0
  8. package/node_modules/@aws-amplify/graphql-auth-transformer/LICENSE +201 -0
  9. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +11 -10
  10. package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +4 -0
  11. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/tools/graphql-json-schema-type.d.ts +1 -1
  12. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/tools/graphql-json-schema-type.d.ts.map +1 -1
  13. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/tools/graphql-json-schema-type.js +89 -65
  14. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/tools/graphql-json-schema-type.js.map +1 -1
  15. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/tools/process-tools.d.ts.map +1 -1
  16. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/tools/process-tools.js +17 -18
  17. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/tools/process-tools.js.map +1 -1
  18. package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +7 -7
  19. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +4 -0
  20. package/node_modules/@aws-amplify/graphql-default-value-transformer/LICENSE +201 -0
  21. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +6 -5
  22. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +4 -0
  23. package/node_modules/@aws-amplify/graphql-function-transformer/LICENSE +201 -0
  24. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +5 -4
  25. package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +4 -0
  26. package/node_modules/@aws-amplify/graphql-generation-transformer/LICENSE +201 -0
  27. package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +5 -4
  28. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +4 -0
  29. package/node_modules/@aws-amplify/graphql-http-transformer/LICENSE +201 -0
  30. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +5 -4
  31. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +4 -0
  32. package/node_modules/@aws-amplify/graphql-index-transformer/LICENSE +201 -0
  33. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +6 -5
  34. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +4 -0
  35. package/node_modules/@aws-amplify/graphql-maps-to-transformer/LICENSE +201 -0
  36. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  37. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +9 -8
  38. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +4 -0
  39. package/node_modules/@aws-amplify/graphql-model-transformer/LICENSE +201 -0
  40. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  41. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  42. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  43. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +5 -4
  44. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -0
  45. package/node_modules/@aws-amplify/graphql-predictions-transformer/LICENSE +201 -0
  46. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  47. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +5 -4
  48. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +4 -0
  49. package/node_modules/@aws-amplify/graphql-relational-transformer/LICENSE +201 -0
  50. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +7 -6
  51. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +4 -0
  52. package/node_modules/@aws-amplify/graphql-searchable-transformer/LICENSE +201 -0
  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 +6 -5
  55. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +4 -0
  56. package/node_modules/@aws-amplify/graphql-sql-transformer/LICENSE +201 -0
  57. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +6 -5
  58. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +4 -0
  59. package/node_modules/@aws-amplify/graphql-transformer/package.json +17 -17
  60. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +4 -0
  61. package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +201 -0
  62. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.d.ts +4 -1
  63. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.d.ts.map +1 -1
  64. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +3 -2
  65. package/package.json +18 -18
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-json-schema-type.js","sourceRoot":"","sources":["../../src/tools/graphql-json-schema-type.ts"],"names":[],"mappings":";;;AAAA,oFAK+C;AAE/C,qCASiB;AACjB,2EAAmE;AASnE,SAAgB,8BAA8B,CAC5C,QAAkB,EAClB,GAA+B,EAC/B,SAAqB,EAAE,IAAI,EAAE,EAAE,EAAE;IAEjC,QAAQ,QAAQ,CAAC,IAAI,EAAE;QACrB,KAAK,cAAI,CAAC,UAAU;YAClB,OAAO,eAAe,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,CAAC,CAA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B,SAAU,cAAc,+BACiC,CAAC;AAEpG,eAAO,MAAM,0BAA0B,SAAU,cAAc,4BACoC,CAAC;AAEpG,KAAK,6BAA6B,GAAG;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAUF,eAAO,MAAM,YAAY,oBAAqB,cAAc,EAAE,OAAO,0BAA0B,KAAG,IAAI,EAAE,GAAG,SA0B1G,CAAC"}
1
+ {"version":3,"file":"process-tools.d.ts","sourceRoot":"","sources":["../../src/tools/process-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3G,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAUzF,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAG9G,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,UAAU,CAAC;KAClB,CAAC;IACF,6BAA6B,CAAC,EAAE,6BAA6B,CAAC;CAC/D,CAAC;AAEF,eAAO,MAAM,6BAA6B,SAAU,cAAc,+BACiC,CAAC;AAEpG,eAAO,MAAM,0BAA0B,SAAU,cAAc,4BACoC,CAAC;AAEpG,KAAK,6BAA6B,GAAG;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAUF,eAAO,MAAM,YAAY,oBAAqB,cAAc,EAAE,OAAO,0BAA0B,KAAG,IAAI,EAAE,GAAG,SA0B1G,CAAC"}
@@ -65,9 +65,9 @@ const getObjectTypeFromName = (name, ctx) => {
65
65
  const createTool = (input) => {
66
66
  const { toolName, description, queryField, ctx } = input;
67
67
  const { type: returnType, arguments: fieldArguments } = queryField;
68
- const { properties, required } = generateToolProperties(fieldArguments, ctx, toolName, returnType);
68
+ const toolSchema = generateToolProperties(fieldArguments, ctx);
69
69
  const selectionSet = generateSelectionSet(returnType, ctx).trim();
70
- const propertyTypes = generatePropertyTypes(fieldArguments, toolName, returnType);
70
+ const propertyTypes = generatePropertyTypes(fieldArguments);
71
71
  const graphqlRequestInputDescriptor = {
72
72
  selectionSet,
73
73
  propertyTypes,
@@ -79,36 +79,38 @@ const createTool = (input) => {
79
79
  inputSchema: {
80
80
  json: {
81
81
  type: 'object',
82
- properties,
83
- required,
82
+ ...toolSchema,
84
83
  },
85
84
  },
86
85
  graphqlRequestInputDescriptor,
87
86
  };
88
87
  };
89
- const generateToolProperties = (fieldArguments, ctx, toolName, returnType) => {
88
+ const generateToolProperties = (fieldArguments, ctx) => {
90
89
  if (!fieldArguments || fieldArguments.length === 0) {
91
90
  return { properties: {}, required: [] };
92
91
  }
93
- if (isModelListOperation(toolName, returnType)) {
94
- return { properties: {}, required: [] };
95
- }
96
- return fieldArguments.reduce((acc, fieldArgument) => {
92
+ const filterSchema = fieldArguments.reduce((acc, fieldArgument) => {
97
93
  const fieldArgumentSchema = (0, graphql_json_schema_type_1.generateJSONSchemaFromTypeNode)(fieldArgument.type, ctx);
94
+ if (!fieldArgumentSchema)
95
+ return acc;
96
+ if (fieldArgumentSchema.$defs) {
97
+ acc.$defs = { ...acc.$defs, ...fieldArgumentSchema.$defs };
98
+ delete fieldArgumentSchema.$defs;
99
+ }
100
+ acc.properties = acc.properties || {};
98
101
  acc.properties[fieldArgument.name.value] = fieldArgumentSchema;
99
- if (fieldArgument.type.kind === 'NonNullType') {
102
+ if ((0, graphql_transformer_common_1.isNonNullType)(fieldArgument.type)) {
103
+ acc.required = acc.required || [];
100
104
  acc.required.push(fieldArgument.name.value);
101
105
  }
102
106
  return acc;
103
- }, { properties: {}, required: [] });
107
+ }, {});
108
+ return filterSchema;
104
109
  };
105
- const generatePropertyTypes = (fieldArguments, toolName, returnType) => {
110
+ const generatePropertyTypes = (fieldArguments) => {
106
111
  if (!fieldArguments || fieldArguments.length === 0) {
107
112
  return {};
108
113
  }
109
- if (isModelListOperation(toolName, returnType)) {
110
- return {};
111
- }
112
114
  return fieldArguments.reduce((acc, fieldArgument) => {
113
115
  const name = fieldArgument.name.value;
114
116
  const suffix = (0, graphql_transformer_common_1.isNonNullType)(fieldArgument.type) ? '!' : '';
@@ -116,9 +118,6 @@ const generatePropertyTypes = (fieldArguments, toolName, returnType) => {
116
118
  return acc;
117
119
  }, {});
118
120
  };
119
- const isModelListOperation = (toolName, responseType) => {
120
- return (0, graphql_transformer_common_1.getBaseType)(responseType).startsWith('Model') && toolName.startsWith('list');
121
- };
122
121
  const modelListQueryName = (modelTool, ctx) => {
123
122
  var _a, _b, _c;
124
123
  const { modelName } = modelTool;
@@ -1 +1 @@
1
- {"version":3,"file":"process-tools.js","sourceRoot":"","sources":["../../src/tools/process-tools.ts"],"names":[],"mappings":";;;AAAA,oFAA2G;AAU3G,2EAA2F;AAG3F,yEAA4E;AAWrE,MAAM,6BAA6B,GAAG,CAAC,IAAoB,EAA8B,EAAE,CAChG,IAAI,CAAC,SAAS,KAAK,SAAS,IAAI,IAAI,CAAC,cAAc,KAAK,SAAS,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC;AADvF,QAAA,6BAA6B,iCAC0D;AAE7F,MAAM,0BAA0B,GAAG,CAAC,IAAoB,EAA2B,EAAE,CAC1F,IAAI,CAAC,SAAS,KAAK,SAAS,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,IAAI,IAAI,CAAC,cAAc,KAAK,SAAS,CAAC;AADvF,QAAA,0BAA0B,8BAC6D;AAgB7F,MAAM,YAAY,GAAG,CAAC,eAAiC,EAAE,GAA+B,EAAsB,EAAE;IAErH,IAAI,CAAC,eAAe,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,E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MAAM,SAAS,GAAG,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM,0CAAE,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC;IACrF,MAAM,SAAS,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAoC,CAAC;IAClE,MAAM,iBAAiB,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,CAAC;IAE3C,OAAO,iBAAiB,aAAjB,iBAAiB,cAAjB,iBAAiB,GAAI,IAAA,0CAAe,EAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AACjE,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-conversation-transformer",
3
- "version": "0.7.1",
3
+ "version": "0.7.2-ai-next.0",
4
4
  "description": "Amplify GraphQL @conversation transformer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,10 +26,10 @@
26
26
  "dependencies": {
27
27
  "@aws-amplify/ai-constructs": "^0.8.1",
28
28
  "@aws-amplify/graphql-directives": "2.6.0",
29
- "@aws-amplify/graphql-index-transformer": "3.0.9",
30
- "@aws-amplify/graphql-model-transformer": "3.1.1",
31
- "@aws-amplify/graphql-relational-transformer": "3.1.1",
32
- "@aws-amplify/graphql-transformer-core": "3.3.1",
29
+ "@aws-amplify/graphql-index-transformer": "3.0.10-ai-next.0",
30
+ "@aws-amplify/graphql-model-transformer": "3.1.2-ai-next.0",
31
+ "@aws-amplify/graphql-relational-transformer": "3.1.2-ai-next.0",
32
+ "@aws-amplify/graphql-transformer-core": "3.3.2-ai-next.0",
33
33
  "@aws-amplify/graphql-transformer-interfaces": "4.2.0",
34
34
  "@aws-amplify/plugin-types": "^1.0.0",
35
35
  "graphql": "^15.5.0",
@@ -39,7 +39,7 @@
39
39
  "semver": "^7.6.3"
40
40
  },
41
41
  "devDependencies": {
42
- "@aws-amplify/graphql-transformer-test-utils": "1.0.8",
42
+ "@aws-amplify/graphql-transformer-test-utils": "1.0.9-ai-next.0",
43
43
  "esbuild": "^0.24.0"
44
44
  },
45
45
  "peerDependencies": {
@@ -82,5 +82,5 @@
82
82
  "/__tests__/"
83
83
  ]
84
84
  },
85
- "gitHead": "548eaae950fd65b78e82bb074ad26d2da293b368"
85
+ "gitHead": "159b59f54424b5fe27af0bbfcaaa1a5dd71b0534"
86
86
  }
@@ -3,6 +3,10 @@
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.1.5-ai-next.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@3.1.4...@aws-amplify/graphql-default-value-transformer@3.1.5-ai-next.0) (2024-11-15)
7
+
8
+ **Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
9
+
6
10
  ## [3.1.4](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@3.1.3...@aws-amplify/graphql-default-value-transformer@3.1.4) (2024-11-14)
7
11
 
8
12
  **Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
@@ -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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-default-value-transformer",
3
- "version": "3.1.4",
3
+ "version": "3.1.5-ai-next.0",
4
4
  "description": "Amplify GraphQL default value transformer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@aws-amplify/graphql-directives": "2.6.0",
34
- "@aws-amplify/graphql-transformer-core": "3.3.1",
34
+ "@aws-amplify/graphql-transformer-core": "3.3.2-ai-next.0",
35
35
  "@aws-amplify/graphql-transformer-interfaces": "4.2.0",
36
36
  "graphql": "^15.5.0",
37
37
  "graphql-mapping-template": "5.0.1",
@@ -39,8 +39,8 @@
39
39
  "libphonenumber-js": "1.9.47"
40
40
  },
41
41
  "devDependencies": {
42
- "@aws-amplify/graphql-model-transformer": "3.1.1",
43
- "@aws-amplify/graphql-transformer-test-utils": "1.0.8"
42
+ "@aws-amplify/graphql-model-transformer": "3.1.2-ai-next.0",
43
+ "@aws-amplify/graphql-transformer-test-utils": "1.0.9-ai-next.0"
44
44
  },
45
45
  "jest": {
46
46
  "transform": {
@@ -82,5 +82,6 @@
82
82
  "escapeString": true,
83
83
  "printBasicPrototype": true
84
84
  }
85
- }
85
+ },
86
+ "gitHead": "159b59f54424b5fe27af0bbfcaaa1a5dd71b0534"
86
87
  }
@@ -3,6 +3,10 @@
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.1.7-ai-next.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@3.1.6...@aws-amplify/graphql-function-transformer@3.1.7-ai-next.0) (2024-11-15)
7
+
8
+ **Note:** Version bump only for package @aws-amplify/graphql-function-transformer
9
+
6
10
  ## [3.1.6](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@3.1.5...@aws-amplify/graphql-function-transformer@3.1.6) (2024-11-14)
7
11
 
8
12
  **Note:** Version bump only for package @aws-amplify/graphql-function-transformer
@@ -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.