@aws-amplify/graphql-api-construct 1.15.1-ai-streaming.7 → 1.16.0-ai-streaming.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +30 -30
- package/CHANGELOG.md +13 -20
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +9 -12
- package/lib/amplify-graphql-definition.js +1 -1
- package/lib/internal/metadata.d.ts +4 -0
- package/lib/internal/metadata.js +42 -0
- package/lib/sql-model-datasource-strategy.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.js +3 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.js +16 -6
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_streaming_response_sender.d.ts +3 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_streaming_response_sender.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.d.ts +2 -2
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.d.ts +15 -4
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/package.json +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +0 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts +4 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +20 -9
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.js +8 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +13 -12
- package/node_modules/@aws-amplify/graphql-conversation-transformer/API.md +2 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +8 -26
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts +6 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js +40 -6
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js +4 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +12 -11
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-directives/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.js +6 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/package.json +3 -2
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +7 -6
- package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +7 -6
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +7 -6
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +11 -10
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/package.json +7 -6
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +7 -6
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +2 -26
- package/node_modules/@aws-amplify/graphql-transformer/package.json +17 -17
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +3 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +3 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js +6 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +5 -4
- package/node_modules/graphql-transformer-common/API.md +3 -0
- package/node_modules/graphql-transformer-common/CHANGELOG.md +6 -0
- package/node_modules/graphql-transformer-common/LICENSE +201 -0
- package/node_modules/graphql-transformer-common/lib/definition.d.ts +1 -0
- package/node_modules/graphql-transformer-common/lib/definition.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/definition.js +20 -1
- package/node_modules/graphql-transformer-common/lib/definition.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +3 -2
- package/package.json +21 -21
- package/src/amplify-graphql-api.ts +12 -12
- package/src/internal/metadata.ts +40 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql-utils.d.ts","sourceRoot":"","sources":["../../src/utils/graphql-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,EAAE,2BAA2B,EAAQ,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAIzI,eAAO,MAAM,0BAA0B,QAAS,cAAc,oCAE7D,CAAC;AAEF,eAAO,MAAM,cAAc,aAAc,MAAM,2BAAoD,CAAC;AAEpG,eAAO,MAAM,WAAW,aAAc,MAAM,wBAA8C,CAAC;AAE3F,eAAO,MAAM,kBAAkB,aAAc,MAAM,+BAA4D,CAAC;AAEhH,eAAO,MAAM,oBAAoB,aAAc,MAAM,sDAC8B,CAAC;AAEpF,eAAO,MAAM,cAAc,QACpB,cAAc;UACwD;QAAE,KAAK,EAAE,UAAU,CAAA;KAAE;CAEjG,CAAC;AAEF,eAAO,MAAM,WAAW,QACjB,cAAc;UACwD;QAAE,KAAK,EAAE,OAAO,CAAA;KAAE;CAE9F,CAAC;AAEF,eAAO,MAAM,kBAAkB,QACxB,cAAc;UACwD;QAAE,KAAK,EAAE,cAAc,CAAA;KAAE;CAErG,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAC1B,cAAc;UACwD;QAAE,KAAK,EAAE,UAAU,GAAG,OAAO,GAAG,cAAc,CAAA;KAAE;CAE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AAwB,aAAa,MAAM,KAAG,mBAAmB,GAAG,SAC7C,CAAC;AAEtD,eAAO,MAAM,OAAO,WAAY,YAAY,YAAY,MAAM,KAAG,wBAAwB,GAAG,SAC8C,CAAC;AAK3I,eAAO,MAAM,oBAAoB,SACzB,mBAAmB,GAAG,2BAA2B,GAAG,wBAAwB,QAC5E,MAAM,KACX,OAEF,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getType = exports.getField = exports.fieldsWithSqlDirective = exports.isBuiltInGraphqlNode = exports.isSubscriptionNode = exports.isQueryNode = exports.isMutationNode = exports.isBuiltInGraphqlType = exports.isSubscriptionType = exports.isQueryType = exports.isMutationType = exports.isObjectTypeDefinitionNode = void 0;
|
3
|
+
exports.hasDirectiveWithName = exports.getType = exports.getField = exports.fieldsWithSqlDirective = exports.isBuiltInGraphqlNode = exports.isSubscriptionNode = exports.isQueryNode = exports.isMutationNode = exports.isBuiltInGraphqlType = exports.isSubscriptionType = exports.isQueryType = exports.isMutationType = exports.isObjectTypeDefinitionNode = void 0;
|
4
4
|
const graphql_1 = require("graphql");
|
5
5
|
const SQL_DIRECTIVE_NAME = 'sql';
|
6
6
|
const isObjectTypeDefinitionNode = (obj) => {
|
@@ -40,4 +40,9 @@ const getField = (obj, fieldName) => { var _a; return (_a = obj.fields) === null
|
|
40
40
|
exports.getField = getField;
|
41
41
|
const getType = (schema, typeName) => schema.definitions.find((def) => (0, exports.isObjectTypeDefinitionNode)(def) && def.name.value === typeName);
|
42
42
|
exports.getType = getType;
|
43
|
+
const hasDirectiveWithName = (node, name) => {
|
44
|
+
var _a, _b;
|
45
|
+
return (_b = (_a = node.directives) === null || _a === void 0 ? void 0 : _a.some((d) => d.name.value === name)) !== null && _b !== void 0 ? _b : false;
|
46
|
+
};
|
47
|
+
exports.hasDirectiveWithName = hasDirectiveWithName;
|
43
48
|
//# sourceMappingURL=graphql-utils.js.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AS,CAAC,CAAA,EAAA,CAAC;AADzC,QAAA,QAAQ,YACiC;AAE/C,MAAM,OAAO,GAAG,CAAC,MAAoB,EAAE,QAAgB,EAAwC,EAAE,CACtG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,kCAA0B,EAAC,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAyC,CAAC;AAD9H,QAAA,OAAO,WACuH;AAKpI,MAAM,oBAAoB,GAAG,CAClC,IAAkF,EAClF,IAAY,EACH,EAAE;;IACX,OAAO,MAAA,MAAA,IAAI,CAAC,UAAU,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,mCAAI,KAAK,CAAC;AACtE,CAAC,CAAC;AALW,QAAA,oBAAoB,wBAK/B"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-transformer-core",
|
3
|
-
"version": "3.2.0",
|
3
|
+
"version": "3.2.2-ai-streaming.0",
|
4
4
|
"description": "A framework to transform from GraphQL SDL to AWS CloudFormation.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -29,12 +29,12 @@
|
|
29
29
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@aws-amplify/graphql-directives": "2.
|
32
|
+
"@aws-amplify/graphql-directives": "2.4.1-ai-streaming.0",
|
33
33
|
"@aws-amplify/graphql-transformer-interfaces": "4.1.2",
|
34
34
|
"fs-extra": "^8.1.0",
|
35
35
|
"graphql": "^15.5.0",
|
36
36
|
"graphql-mapping-template": "5.0.1",
|
37
|
-
"graphql-transformer-common": "5.0.
|
37
|
+
"graphql-transformer-common": "5.0.2-ai-streaming.0",
|
38
38
|
"hjson": "^3.2.2",
|
39
39
|
"lodash": "^4.17.21",
|
40
40
|
"md5": "^2.3.0",
|
@@ -92,5 +92,6 @@
|
|
92
92
|
"escapeString": true,
|
93
93
|
"printBasicPrototype": true
|
94
94
|
}
|
95
|
-
}
|
95
|
+
},
|
96
|
+
"gitHead": "8701d087e41015a83c74bf9fd0723f16ac23313f"
|
96
97
|
}
|
@@ -63,6 +63,9 @@ export const directiveExists: (definition: ObjectTypeDefinitionNode, name: strin
|
|
63
63
|
// @public (undocumented)
|
64
64
|
export function extendFieldWithDirectives(field: FieldDefinitionNode, directives: DirectiveNode[]): FieldDefinitionNode;
|
65
65
|
|
66
|
+
// @public (undocumented)
|
67
|
+
export function extendObjectWithDirectives(object: ObjectTypeDefinitionNode, directives: DirectiveNode[]): ObjectTypeDefinitionNode;
|
68
|
+
|
66
69
|
// @public (undocumented)
|
67
70
|
export function extensionWithDirectives(object: ObjectTypeExtensionNode, directives: DirectiveNode[]): ObjectTypeExtensionNode;
|
68
71
|
|
@@ -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
|
+
## [5.0.2-ai-streaming.0](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@5.0.1...graphql-transformer-common@5.0.2-ai-streaming.0) (2024-10-22)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- enable IAM auth for custom types ([#2961](https://github.com/aws-amplify/amplify-category-api/issues/2961)) ([#2971](https://github.com/aws-amplify/amplify-category-api/issues/2971)) ([0e003d2](https://github.com/aws-amplify/amplify-category-api/commit/0e003d2656c46171c7fa2e947c92d701ede94f22))
|
11
|
+
|
6
12
|
## [5.0.1](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@5.0.0...graphql-transformer-common@5.0.1) (2024-09-06)
|
7
13
|
|
8
14
|
**Note:** Version bump only for package graphql-transformer-common
|
@@ -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.
|
@@ -29,6 +29,7 @@ export declare function blankObjectExtension(name: string): ObjectTypeExtensionN
|
|
29
29
|
export declare function extensionWithFields(object: ObjectTypeExtensionNode, fields: FieldDefinitionNode[]): ObjectTypeExtensionNode;
|
30
30
|
export declare function extensionWithDirectives(object: ObjectTypeExtensionNode, directives: DirectiveNode[]): ObjectTypeExtensionNode;
|
31
31
|
export declare function extendFieldWithDirectives(field: FieldDefinitionNode, directives: DirectiveNode[]): FieldDefinitionNode;
|
32
|
+
export declare function extendObjectWithDirectives(object: ObjectTypeDefinitionNode, directives: DirectiveNode[]): ObjectTypeDefinitionNode;
|
32
33
|
export declare function defineUnionType(name: string, types?: NamedTypeNode[]): UnionTypeDefinitionNode;
|
33
34
|
export declare function makeInputObjectDefinition(name: string, inputs: InputValueDefinitionNode[]): InputObjectTypeDefinitionNode;
|
34
35
|
export declare function makeObjectDefinition(name: string, inputs: FieldDefinitionNode[]): ObjectTypeDefinitionNode;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../src/definition.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../src/definition.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACpB,iBAAiB,EACjB,2BAA2B,EAC3B,uBAAuB,EACvB,aAAa,EAEb,eAAe,EACf,YAAY,EAEZ,YAAY,EACZ,aAAa,EACb,sBAAsB,EACtB,SAAS,EACT,6BAA6B,EAC7B,uBAAuB,EACvB,YAAY,EACZ,cAAc,EACf,MAAM,SAAS,CAAC;AAEjB,KAAK,SAAS,GAAG;IACf,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC;CAC5D,CAAC;AACF,eAAO,MAAM,gBAAgB,EAAE,SAM9B,CAAC;AAOF,eAAO,MAAM,uBAAuB,EAAE,SAUrC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,SAI7B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAMnD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE;IAAE,CAAC,CAAC,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C,IAAI,EAAE,QAAQ,GAAG,YAAY,CAKzD;AAED,eAAO,MAAM,oBAAoB,aAAc,YAAY,QAAQ,MAAM,KAAG,wBAAwB,GAAG,SAItG,CAAC;AAEF,eAAO,MAAM,WAAW,SAAU,QAAQ,KAAG,OAE5C,CAAC;AAEF,eAAO,MAAM,gBAAgB,aAAc,YAAY,KAAG,cAAc,EAGvE,CAAC;AAEF,eAAO,MAAM,cAAc,eAAgB,cAAc,YAExD,CAAC;AAEF,eAAO,MAAM,eAAe,eAAgB,wBAAwB,QAAQ,MAAM,kBAEjF,CAAC;AAEF,eAAO,MAAM,QAAQ,SAAU,QAAQ,QAAQ,MAAM,KAAG,OAUvD,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isOfType = exports.directiveExists = exports.isNonModelType = exports.getNonModelTypes = exports.isNamedType = exports.findObjectDefinition = exports.makeListType = exports.makeNonNullType = exports.makeNamedType = exports.makeInputValueDefinition = exports.makeValueNode = exports.makeArgument = exports.makeDirective = exports.makeField = exports.makeObjectDefinition = exports.makeInputObjectDefinition = exports.defineUnionType = exports.extendFieldWithDirectives = exports.extensionWithDirectives = exports.extensionWithFields = exports.blankObjectExtension = exports.blankObject = exports.makeSchema = exports.makeOperationType = exports.wrapNonNull = exports.unwrapNonNull = exports.getDirectiveArgument = exports.isNonNullType = exports.isListType = exports.getBaseType = exports.isEnum = exports.isArrayOrObject = exports.isScalarOrEnum = exports.isScalar = exports.attributeTypeFromScalar = exports.MAP_SCALARS = exports.NUMERIC_SCALARS = exports.DEFAULT_SCALARS = exports.APPSYNC_DEFINED_SCALARS = exports.STANDARD_SCALARS = void 0;
|
3
|
+
exports.isOfType = exports.directiveExists = exports.isNonModelType = exports.getNonModelTypes = exports.isNamedType = exports.findObjectDefinition = exports.makeListType = exports.makeNonNullType = exports.makeNamedType = exports.makeInputValueDefinition = exports.makeValueNode = exports.makeArgument = exports.makeDirective = exports.makeField = exports.makeObjectDefinition = exports.makeInputObjectDefinition = exports.defineUnionType = exports.extendObjectWithDirectives = exports.extendFieldWithDirectives = exports.extensionWithDirectives = exports.extensionWithFields = exports.blankObjectExtension = exports.blankObject = exports.makeSchema = exports.makeOperationType = exports.wrapNonNull = exports.unwrapNonNull = exports.getDirectiveArgument = exports.isNonNullType = exports.isListType = exports.getBaseType = exports.isEnum = exports.isArrayOrObject = exports.isScalarOrEnum = exports.isScalar = exports.attributeTypeFromScalar = exports.MAP_SCALARS = exports.NUMERIC_SCALARS = exports.DEFAULT_SCALARS = exports.APPSYNC_DEFINED_SCALARS = exports.STANDARD_SCALARS = void 0;
|
4
4
|
const graphql_1 = require("graphql");
|
5
5
|
exports.STANDARD_SCALARS = {
|
6
6
|
String: 'String',
|
@@ -248,6 +248,25 @@ function extendFieldWithDirectives(field, directives) {
|
|
248
248
|
return field;
|
249
249
|
}
|
250
250
|
exports.extendFieldWithDirectives = extendFieldWithDirectives;
|
251
|
+
function extendObjectWithDirectives(object, directives) {
|
252
|
+
if (!directives || directives.length === 0) {
|
253
|
+
return object;
|
254
|
+
}
|
255
|
+
const newDirectives = [];
|
256
|
+
for (const directive of directives) {
|
257
|
+
if (!object.directives.some((d) => d.name.value === directive.name.value)) {
|
258
|
+
newDirectives.push(directive);
|
259
|
+
}
|
260
|
+
}
|
261
|
+
if (newDirectives.length === 0) {
|
262
|
+
return object;
|
263
|
+
}
|
264
|
+
return {
|
265
|
+
...object,
|
266
|
+
directives: [...object.directives, ...newDirectives],
|
267
|
+
};
|
268
|
+
}
|
269
|
+
exports.extendObjectWithDirectives = extendObjectWithDirectives;
|
251
270
|
function defineUnionType(name, types = []) {
|
252
271
|
return {
|
253
272
|
kind: graphql_1.Kind.UNION_TYPE_DEFINITION,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../src/definition.ts"],"names":[],"mappings":";;;AAAA,qCAsBiB;AAKJ,QAAA,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AAA,mBAAW,EAAC,IAAI,CAAC,EAAE;QACtB,OAAO,KAAK,CAAC;KACd;IAED,OAAO,CAAA,MAAC,IAAsB,CAAC,IAAI,0CAAE,KAAK,MAAK,IAAI,CAAC;AACtD,CAAC,CAAC;AAVW,QAAA,QAAQ,YAUnB"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "graphql-transformer-common",
|
3
|
-
"version": "5.0.
|
3
|
+
"version": "5.0.2-ai-streaming.0",
|
4
4
|
"description": "Common code and constants for AppSync Transformers",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -72,5 +72,6 @@
|
|
72
72
|
"escapeString": true,
|
73
73
|
"printBasicPrototype": true
|
74
74
|
}
|
75
|
-
}
|
75
|
+
},
|
76
|
+
"gitHead": "8701d087e41015a83c74bf9fd0723f16ac23313f"
|
76
77
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-api-construct",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.16.0-ai-streaming.0",
|
4
4
|
"description": "AppSync GraphQL Api Construct using Amplify GraphQL Transformer.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -158,25 +158,25 @@
|
|
158
158
|
"semver"
|
159
159
|
],
|
160
160
|
"dependencies": {
|
161
|
-
"@aws-amplify/ai-constructs": "0.
|
161
|
+
"@aws-amplify/ai-constructs": "0.6.1",
|
162
162
|
"@aws-amplify/backend-output-schemas": "^1.0.0",
|
163
163
|
"@aws-amplify/backend-output-storage": "^1.0.0",
|
164
|
-
"@aws-amplify/graphql-auth-transformer": "4.1.
|
165
|
-
"@aws-amplify/graphql-conversation-transformer": "0.
|
166
|
-
"@aws-amplify/graphql-default-value-transformer": "3.1.0",
|
167
|
-
"@aws-amplify/graphql-directives": "2.
|
168
|
-
"@aws-amplify/graphql-function-transformer": "3.1.
|
169
|
-
"@aws-amplify/graphql-generation-transformer": "0.2.
|
170
|
-
"@aws-amplify/graphql-http-transformer": "3.0.
|
171
|
-
"@aws-amplify/graphql-index-transformer": "3.0.
|
172
|
-
"@aws-amplify/graphql-maps-to-transformer": "4.0.
|
173
|
-
"@aws-amplify/graphql-model-transformer": "3.0.
|
174
|
-
"@aws-amplify/graphql-predictions-transformer": "3.0.
|
175
|
-
"@aws-amplify/graphql-relational-transformer": "3.0.
|
176
|
-
"@aws-amplify/graphql-searchable-transformer": "3.0.
|
177
|
-
"@aws-amplify/graphql-sql-transformer": "0.4.
|
178
|
-
"@aws-amplify/graphql-transformer": "2.1.
|
179
|
-
"@aws-amplify/graphql-transformer-core": "3.2.0",
|
164
|
+
"@aws-amplify/graphql-auth-transformer": "4.1.5-ai-streaming.0",
|
165
|
+
"@aws-amplify/graphql-conversation-transformer": "0.5.0-ai-streaming.0",
|
166
|
+
"@aws-amplify/graphql-default-value-transformer": "3.1.2-ai-streaming.0",
|
167
|
+
"@aws-amplify/graphql-directives": "2.4.1-ai-streaming.0",
|
168
|
+
"@aws-amplify/graphql-function-transformer": "3.1.4-ai-streaming.0",
|
169
|
+
"@aws-amplify/graphql-generation-transformer": "0.2.5-ai-streaming.0",
|
170
|
+
"@aws-amplify/graphql-http-transformer": "3.0.7-ai-streaming.0",
|
171
|
+
"@aws-amplify/graphql-index-transformer": "3.0.7-ai-streaming.0",
|
172
|
+
"@aws-amplify/graphql-maps-to-transformer": "4.0.7-ai-streaming.0",
|
173
|
+
"@aws-amplify/graphql-model-transformer": "3.0.7-ai-streaming.0",
|
174
|
+
"@aws-amplify/graphql-predictions-transformer": "3.0.7-ai-streaming.0",
|
175
|
+
"@aws-amplify/graphql-relational-transformer": "3.0.7-ai-streaming.0",
|
176
|
+
"@aws-amplify/graphql-searchable-transformer": "3.0.7-ai-streaming.0",
|
177
|
+
"@aws-amplify/graphql-sql-transformer": "0.4.7-ai-streaming.0",
|
178
|
+
"@aws-amplify/graphql-transformer": "2.1.5-ai-streaming.0",
|
179
|
+
"@aws-amplify/graphql-transformer-core": "3.2.2-ai-streaming.0",
|
180
180
|
"@aws-amplify/graphql-transformer-interfaces": "4.1.2",
|
181
181
|
"@aws-amplify/platform-core": "^1.0.0",
|
182
182
|
"@aws-amplify/plugin-types": "^1.0.0",
|
@@ -261,7 +261,7 @@
|
|
261
261
|
"graceful-fs": "^4.2.0",
|
262
262
|
"graphql": "^15.5.0",
|
263
263
|
"graphql-mapping-template": "5.0.1",
|
264
|
-
"graphql-transformer-common": "5.0.
|
264
|
+
"graphql-transformer-common": "5.0.2-ai-streaming.0",
|
265
265
|
"hjson": "^3.2.2",
|
266
266
|
"immer": "^9.0.12",
|
267
267
|
"is-buffer": "~1.1.6",
|
@@ -282,7 +282,7 @@
|
|
282
282
|
"zod": "^3.22.2"
|
283
283
|
},
|
284
284
|
"devDependencies": {
|
285
|
-
"@aws-amplify/graphql-transformer-test-utils": "1.0.
|
285
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.6-ai-streaming.0",
|
286
286
|
"@types/fs-extra": "^8.0.1",
|
287
287
|
"@types/node": "^18.0.0",
|
288
288
|
"aws-cdk-lib": "2.158.0",
|
@@ -353,5 +353,5 @@
|
|
353
353
|
"printBasicPrototype": true
|
354
354
|
}
|
355
355
|
},
|
356
|
-
"gitHead": "
|
356
|
+
"gitHead": "8701d087e41015a83c74bf9fd0723f16ac23313f"
|
357
357
|
}
|
@@ -35,7 +35,6 @@ import type {
|
|
35
35
|
IBackendOutputStorageStrategy,
|
36
36
|
AddFunctionProps,
|
37
37
|
DataStoreConfiguration,
|
38
|
-
IAmplifyGraphqlDefinition,
|
39
38
|
} from './types';
|
40
39
|
import {
|
41
40
|
convertAuthorizationModesToTransformerAuthConfig,
|
@@ -50,6 +49,7 @@ import {
|
|
50
49
|
} from './internal';
|
51
50
|
import { getStackForScope, walkAndProcessNodes } from './internal/construct-tree';
|
52
51
|
import { getDataSourceStrategiesProvider } from './internal/data-source-config';
|
52
|
+
import { getMetadataDataSources, getMetadataAuthorizationModes, getMetadataCustomOperations } from './internal/metadata';
|
53
53
|
|
54
54
|
/**
|
55
55
|
* L3 Construct which invokes the Amplify Transformer Pattern over an input Graphql Schema.
|
@@ -168,11 +168,18 @@ export class AmplifyGraphqlApi extends Construct {
|
|
168
168
|
|
169
169
|
this.dataStoreConfiguration = dataStoreConfiguration || conflictResolution;
|
170
170
|
|
171
|
-
const
|
171
|
+
const attributionMetadata = {
|
172
|
+
dataSources: getMetadataDataSources(definition),
|
173
|
+
authorizationModes: getMetadataAuthorizationModes(authorizationModes),
|
174
|
+
customOperations: getMetadataCustomOperations(definition),
|
175
|
+
};
|
172
176
|
|
173
|
-
new AttributionMetadataStorage().storeAttributionMetadata(
|
174
|
-
|
175
|
-
|
177
|
+
new AttributionMetadataStorage().storeAttributionMetadata(
|
178
|
+
Stack.of(scope),
|
179
|
+
this.stackType,
|
180
|
+
path.join(__dirname, '..', 'package.json'),
|
181
|
+
attributionMetadata,
|
182
|
+
);
|
176
183
|
|
177
184
|
validateAuthorizationModes(authorizationModes);
|
178
185
|
const { authConfig, authSynthParameters } = convertAuthorizationModesToTransformerAuthConfig(authorizationModes);
|
@@ -420,10 +427,3 @@ const validateNoOtherAmplifyGraphqlApiInStack = (scope: Construct): void => {
|
|
420
427
|
throw new Error('Only one AmplifyGraphqlApi is expected in a stack. Place the AmplifyGraphqlApis in separate nested stacks.');
|
421
428
|
}
|
422
429
|
};
|
423
|
-
|
424
|
-
const getMetadataDataSources = (definition: IAmplifyGraphqlDefinition): string => {
|
425
|
-
const dataSourceDbTypes = Object.values(definition.dataSourceStrategies).map((strategy) => strategy.dbType.toLocaleLowerCase());
|
426
|
-
const customSqlDbTypes = (definition.customSqlDataSourceStrategies ?? []).map((strategy) => strategy.strategy.dbType.toLocaleLowerCase());
|
427
|
-
const dataSources = [...new Set([...dataSourceDbTypes, ...customSqlDbTypes])].sort();
|
428
|
-
return dataSources.join(',');
|
429
|
-
};
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { AuthorizationModes, IAmplifyGraphqlDefinition } from '../types';
|
2
|
+
|
3
|
+
export const getMetadataDataSources = (definition: IAmplifyGraphqlDefinition): string => {
|
4
|
+
const dataSourceDbTypes = Object.values(definition.dataSourceStrategies).map((strategy) => strategy.dbType.toLocaleLowerCase());
|
5
|
+
const customSqlDbTypes = (definition.customSqlDataSourceStrategies ?? []).map((strategy) => strategy.strategy.dbType.toLocaleLowerCase());
|
6
|
+
const dataSources = [...new Set([...dataSourceDbTypes, ...customSqlDbTypes])].sort();
|
7
|
+
return dataSources.join(',');
|
8
|
+
};
|
9
|
+
|
10
|
+
export const getMetadataAuthorizationModes = (authorizationModes: AuthorizationModes): string => {
|
11
|
+
const configKeyToAuthMode: Record<string, string> = {
|
12
|
+
iamConfig: 'aws_iam',
|
13
|
+
oidcConfig: 'openid_connect',
|
14
|
+
identityPoolConfig: 'amazon_cognito_identity_pools',
|
15
|
+
userPoolConfig: 'amazon_cognito_user_pools',
|
16
|
+
apiKeyConfig: 'api_key',
|
17
|
+
lambdaConfig: 'aws_lambda',
|
18
|
+
};
|
19
|
+
const authModes = Object.keys(authorizationModes)
|
20
|
+
.map((mode) => configKeyToAuthMode[mode])
|
21
|
+
// remove values not found in mapping
|
22
|
+
.filter((mode) => !!mode)
|
23
|
+
.sort();
|
24
|
+
return authModes.join(',');
|
25
|
+
};
|
26
|
+
|
27
|
+
export const getMetadataCustomOperations = (definition: IAmplifyGraphqlDefinition): string => {
|
28
|
+
const customOperations: string[] = [];
|
29
|
+
if (definition.schema.includes('type Query')) {
|
30
|
+
customOperations.push('queries');
|
31
|
+
}
|
32
|
+
if (definition.schema.includes('type Mutation')) {
|
33
|
+
customOperations.push('mutations');
|
34
|
+
}
|
35
|
+
if (definition.schema.includes('type Subscription')) {
|
36
|
+
customOperations.push('subscriptions');
|
37
|
+
}
|
38
|
+
|
39
|
+
return customOperations.join(',');
|
40
|
+
};
|