@aws-amplify/graphql-api-construct 1.11.6-raven.7 → 1.11.6-sandbox-hotswap.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +17 -20
- package/CHANGELOG.md +1 -31
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +1 -1
- package/lib/amplify-graphql-definition.js +1 -1
- package/lib/sql-model-datasource-strategy.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +1 -13
- 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.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +13 -12
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +1 -13
- 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/API.md +0 -6
- package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +0 -12
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts +0 -2
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js +1 -5
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/index.js +0 -2
- package/node_modules/@aws-amplify/graphql-directives/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/package.json +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +1 -13
- 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-http-transformer/CHANGELOG.md +1 -13
- 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 +1 -13
- package/node_modules/@aws-amplify/graphql-index-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +1 -13
- 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 +3 -13
- 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 +1 -13
- 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 +1 -13
- package/node_modules/@aws-amplify/graphql-relational-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +1 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +1 -13
- 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 +1 -13
- 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 +1 -29
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js +2 -8
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/package.json +15 -17
- package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +3 -8
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +2 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +1 -13
- package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.d.ts +1 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.js +15 -26
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.d.ts +3 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.js +8 -17
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.d.ts +2 -6
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js +24 -59
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/wrappers/object-definition-wrapper.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/wrappers/object-definition-wrapper.js +1 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/wrappers/object-definition-wrapper.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +5 -4
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +3 -7
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +1 -5
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transform-host-provider.d.ts +4 -4
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transform-host-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +3 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/graphql-api-provider.ts +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transform-host-provider.ts +1 -5
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/package.json +18 -24
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.d.ts +0 -3
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.js +0 -31
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.d.ts +0 -3
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.js +0 -24
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.js.map +0 -1
@@ -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,5 +1,5 @@
|
|
1
1
|
import { MappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { BaseDataSource
|
2
|
+
import { BaseDataSource } from 'aws-cdk-lib/aws-appsync';
|
3
3
|
import { Construct } from 'constructs';
|
4
4
|
import { GraphQLApi } from './graphql-api';
|
5
5
|
export interface BaseFunctionConfigurationProps {
|
@@ -10,7 +10,6 @@ export interface BaseFunctionConfigurationProps {
|
|
10
10
|
export interface FunctionConfigurationProps extends BaseFunctionConfigurationProps {
|
11
11
|
readonly api: GraphQLApi;
|
12
12
|
readonly dataSource: BaseDataSource | string;
|
13
|
-
readonly runtime: CfnFunctionConfiguration.AppSyncRuntimeProperty | undefined;
|
14
13
|
}
|
15
14
|
export declare class AppSyncFunctionConfiguration extends Construct {
|
16
15
|
readonly arn: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"appsync-function.d.ts","sourceRoot":"","sources":["../src/appsync-function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAoB,cAAc,
|
1
|
+
{"version":3,"file":"appsync-function.d.ts","sourceRoot":"","sources":["../src/appsync-function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAoB,cAAc,EAA4B,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,WAAW,8BAA8B;IAM7C,QAAQ,CAAC,sBAAsB,EAAE,uBAAuB,CAAC;IAMzD,QAAQ,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;IAE1D,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAKD,MAAM,WAAW,0BAA2B,SAAQ,8BAA8B;IAIhF,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC;IAMzB,QAAQ,CAAC,UAAU,EAAE,cAAc,GAAG,MAAM,CAAC;CAC9C;AAED,qBAAa,4BAA6B,SAAQ,SAAS;IAIzD,SAAgB,GAAG,EAAE,MAAM,CAAC;IAE5B,SAAgB,UAAU,EAAE,MAAM,CAAC;IAEnC,OAAO,CAAC,QAAQ,CAA2B;gBAE/B,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,0BAA0B;CA0B5E"}
|
@@ -7,38 +7,27 @@ const template_asset_1 = require("./cdk-compat/template-asset");
|
|
7
7
|
const utils_1 = require("./utils");
|
8
8
|
class AppSyncFunctionConfiguration extends constructs_1.Construct {
|
9
9
|
constructor(scope, id, props) {
|
10
|
-
var _a
|
10
|
+
var _a;
|
11
11
|
super(scope, id);
|
12
12
|
const requestTemplate = props.requestMappingTemplate.bind(this, props.api.assetProvider);
|
13
13
|
const responseTemplate = props.responseMappingTemplate.bind(this, props.api.assetProvider);
|
14
|
-
this.function =
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
:
|
26
|
-
|
27
|
-
apiId: props.api.apiId,
|
28
|
-
functionVersion: '2018-05-29',
|
29
|
-
description: props.description,
|
30
|
-
dataSourceName: props.dataSource instanceof aws_appsync_1.BaseDataSource ? props.dataSource.ds.attrName : props.dataSource,
|
31
|
-
...(props.requestMappingTemplate instanceof template_asset_1.InlineTemplate
|
32
|
-
? { requestMappingTemplate: requestTemplate }
|
33
|
-
: { requestMappingTemplateS3Location: requestTemplate }),
|
34
|
-
...(props.responseMappingTemplate instanceof template_asset_1.InlineTemplate
|
35
|
-
? { responseMappingTemplate: responseTemplate }
|
36
|
-
: { responseMappingTemplateS3Location: responseTemplate }),
|
37
|
-
});
|
14
|
+
this.function = new aws_appsync_1.CfnFunctionConfiguration(this, `${id}.AppSyncFunction`, {
|
15
|
+
name: id,
|
16
|
+
apiId: props.api.apiId,
|
17
|
+
functionVersion: '2018-05-29',
|
18
|
+
description: props.description,
|
19
|
+
dataSourceName: props.dataSource instanceof aws_appsync_1.BaseDataSource ? props.dataSource.ds.attrName : props.dataSource,
|
20
|
+
...(props.requestMappingTemplate instanceof template_asset_1.InlineTemplate
|
21
|
+
? { requestMappingTemplate: requestTemplate }
|
22
|
+
: { requestMappingTemplateS3Location: requestTemplate }),
|
23
|
+
...(props.responseMappingTemplate instanceof template_asset_1.InlineTemplate
|
24
|
+
? { responseMappingTemplate: responseTemplate }
|
25
|
+
: { responseMappingTemplateS3Location: responseTemplate }),
|
26
|
+
});
|
38
27
|
(0, utils_1.setResourceName)(this.function, { name: id });
|
39
28
|
props.api.addSchemaDependency(this.function);
|
40
29
|
if (props.dataSource instanceof aws_appsync_1.BackedDataSource) {
|
41
|
-
this.function.addDependency((
|
30
|
+
this.function.addDependency((_a = props.dataSource) === null || _a === void 0 ? void 0 : _a.ds);
|
42
31
|
}
|
43
32
|
this.arn = this.function.attrFunctionArn;
|
44
33
|
this.functionId = this.function.attrFunctionId;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"appsync-function.js","sourceRoot":"","sources":["../src/appsync-function.ts"],"names":[],"mappings":";;;AACA,yDAAqG;AACrG,2CAAuC;AACvC,gEAA6D;AAE7D,mCAA0C;
|
1
|
+
{"version":3,"file":"appsync-function.js","sourceRoot":"","sources":["../src/appsync-function.ts"],"names":[],"mappings":";;;AACA,yD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AC;QAC7C,KAAK,CAAC,GAAG,CAAC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC7C,IAAI,KAAK,CAAC,UAAU,YAAY,8BAAgB,EAAE;YAChD,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAA,KAAK,CAAC,UAAU,0CAAE,EAAE,CAAC,CAAC;SACnD;QACD,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;IACjD,CAAC;CACF;AApCD,oEAoCC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { DynamoDbDataSourceOptions, MappingTemplateProvider, SearchableDataSourceOptions, TransformHostProvider, VpcConfig } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { BaseDataSource, DataSourceOptions, DynamoDbDataSource, HttpDataSource, HttpDataSourceOptions, LambdaDataSource, NoneDataSource, CfnResolver
|
2
|
+
import { BaseDataSource, DataSourceOptions, DynamoDbDataSource, HttpDataSource, HttpDataSourceOptions, LambdaDataSource, NoneDataSource, CfnResolver } from 'aws-cdk-lib/aws-appsync';
|
3
3
|
import { ITable } from 'aws-cdk-lib/aws-dynamodb';
|
4
4
|
import { IRole } from 'aws-cdk-lib/aws-iam';
|
5
5
|
import { IFunction, ILayerVersion, Runtime } from 'aws-cdk-lib/aws-lambda';
|
@@ -27,8 +27,8 @@ export declare class DefaultTransformHost implements TransformHostProvider {
|
|
27
27
|
addDynamoDbDataSource: (name: string, table: ITable, options?: DynamoDbDataSourceOptions, scope?: Construct) => DynamoDbDataSource;
|
28
28
|
addNoneDataSource: (name: string, options?: DataSourceOptions, scope?: Construct) => NoneDataSource;
|
29
29
|
addLambdaDataSource: (name: string, lambdaFunction: IFunction, options?: DataSourceOptions, scope?: Construct) => LambdaDataSource;
|
30
|
-
addAppSyncFunction: (name: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, dataSourceName: string, scope?: Construct
|
31
|
-
addResolver: (typeName: string, fieldName: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, resolverLogicalId?: string, dataSourceName?: string, pipelineConfig?: string[], scope?: Construct
|
30
|
+
addAppSyncFunction: (name: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, dataSourceName: string, scope?: Construct) => AppSyncFunctionConfiguration;
|
31
|
+
addResolver: (typeName: string, fieldName: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, resolverLogicalId?: string, dataSourceName?: string, pipelineConfig?: string[], scope?: Construct) => CfnResolver;
|
32
32
|
addLambdaFunction: (functionName: string, functionKey: string, handlerName: string, filePath: string, runtime: Runtime, layers?: ILayerVersion[], role?: IRole, environment?: {
|
33
33
|
[key: string]: string;
|
34
34
|
} | undefined, timeout?: Duration, scope?: Construct, vpc?: VpcConfig, description?: string) => IFunction;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transform-host.d.ts","sourceRoot":"","sources":["../src/transform-host.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,SAAS,EACV,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,cAAc,EAEd,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,WAAW,
|
1
|
+
{"version":3,"file":"transform-host.d.ts","sourceRoot":"","sources":["../src/transform-host.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,SAAS,EACV,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,cAAc,EAEd,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EAC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CAAC,EAAE,2BAA2B,EACrC,KAAK,CAAC,EAAE,SAAS,GAChB,oBAAoB;IAoBvB,SAAS,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,iBAAiB,EAAE,KAAK,CAAC,EAAE,SAAS,GAAG,gBAAgB;CAczI"}
|
@@ -58,7 +58,7 @@ class DefaultTransformHost {
|
|
58
58
|
this.dataSources.set(name, dataSource);
|
59
59
|
return dataSource;
|
60
60
|
};
|
61
|
-
this.addAppSyncFunction = (name, requestMappingTemplate, responseMappingTemplate, dataSourceName, scope
|
61
|
+
this.addAppSyncFunction = (name, requestMappingTemplate, responseMappingTemplate, dataSourceName, scope) => {
|
62
62
|
if (dataSourceName && !aws_cdk_lib_1.Token.isUnresolved(dataSourceName) && !this.dataSources.has(dataSourceName)) {
|
63
63
|
throw new Error(`DataSource ${dataSourceName} is missing in the API`);
|
64
64
|
}
|
@@ -80,12 +80,11 @@ class DefaultTransformHost {
|
|
80
80
|
dataSource: dataSource || dataSourceName,
|
81
81
|
requestMappingTemplate,
|
82
82
|
responseMappingTemplate,
|
83
|
-
runtime,
|
84
83
|
});
|
85
84
|
this.appsyncFunctions.set(slotHash, fn);
|
86
85
|
return fn;
|
87
86
|
};
|
88
|
-
this.addResolver = (typeName, fieldName, requestMappingTemplate, responseMappingTemplate, resolverLogicalId, dataSourceName, pipelineConfig, scope
|
87
|
+
this.addResolver = (typeName, fieldName, requestMappingTemplate, responseMappingTemplate, resolverLogicalId, dataSourceName, pipelineConfig, scope) => {
|
89
88
|
if (dataSourceName && !aws_cdk_lib_1.Token.isUnresolved(dataSourceName) && !this.dataSources.has(dataSourceName)) {
|
90
89
|
throw new Error(`DataSource ${dataSourceName} is missing in the API`);
|
91
90
|
}
|
@@ -114,28 +113,20 @@ class DefaultTransformHost {
|
|
114
113
|
return resolver;
|
115
114
|
}
|
116
115
|
if (pipelineConfig) {
|
117
|
-
const runtimeSpecificArgs = (runtime === null || runtime === void 0 ? void 0 : runtime.name) === 'APPSYNC_JS'
|
118
|
-
? {
|
119
|
-
code: requestTemplateLocation + '\n\n' + responseTemplateLocation,
|
120
|
-
runtime,
|
121
|
-
}
|
122
|
-
: {
|
123
|
-
...(requestMappingTemplate instanceof template_asset_1.InlineTemplate
|
124
|
-
? { requestMappingTemplate: requestTemplateLocation }
|
125
|
-
: { requestMappingTemplateS3Location: requestTemplateLocation }),
|
126
|
-
...(responseMappingTemplate instanceof template_asset_1.InlineTemplate
|
127
|
-
? { responseMappingTemplate: responseTemplateLocation }
|
128
|
-
: { responseMappingTemplateS3Location: responseTemplateLocation }),
|
129
|
-
};
|
130
116
|
const resolver = new aws_appsync_1.CfnResolver(scope || this.api, resolverName, {
|
131
117
|
apiId: this.api.apiId,
|
132
118
|
fieldName,
|
133
119
|
typeName,
|
134
120
|
kind: 'PIPELINE',
|
121
|
+
...(requestMappingTemplate instanceof template_asset_1.InlineTemplate
|
122
|
+
? { requestMappingTemplate: requestTemplateLocation }
|
123
|
+
: { requestMappingTemplateS3Location: requestTemplateLocation }),
|
124
|
+
...(responseMappingTemplate instanceof template_asset_1.InlineTemplate
|
125
|
+
? { responseMappingTemplate: responseTemplateLocation }
|
126
|
+
: { responseMappingTemplateS3Location: responseTemplateLocation }),
|
135
127
|
pipelineConfig: {
|
136
128
|
functions: pipelineConfig,
|
137
129
|
},
|
138
|
-
...runtimeSpecificArgs,
|
139
130
|
});
|
140
131
|
resolver.overrideLogicalId(resourceId);
|
141
132
|
(0, utils_1.setResourceName)(resolver, { name: `${typeName}.${fieldName}` });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transform-host.js","sourceRoot":"","sources":["../src/transform-host.ts"],"names":[],"mappings":";;;;;;AAOA,yDAWiC;AAGjC,uDAAwG;AACxG,6CAA8C;AAC9C,2EAA4F;AAC5F,8DAA+B;AAE/B,yDAAkE;AAClE,8EAA0E;AAC1E,gEAAoF;AAEpF,mCAA0C;AAY1C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AAO,CAAE,IAAI;YACnB,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;SAClC,CAAC,CAAC;QAEH,MAAM,aAAa,GAAmB,EAAU,CAAC,IAAI,CAAC,YAAY,CAAC;QACnE,aAAa,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC;QACpC,IAAA,uBAAe,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC;QAE5E,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AArWD,oDAqWC"}
|
package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.d.ts
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
import { AppSyncFunctionConfigurationProvider, DataSourceProvider, GraphQLAPIProvider, MappingTemplateProvider, TransformerContextProvider, TransformerResolverProvider, TransformerResolversManagerProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { CfnFunctionConfiguration } from 'aws-cdk-lib/aws-appsync';
|
3
2
|
import { Stack } from 'aws-cdk-lib';
|
4
3
|
import { Construct } from 'constructs';
|
5
4
|
type Slot = {
|
6
5
|
requestMappingTemplate?: MappingTemplateProvider;
|
7
6
|
responseMappingTemplate?: MappingTemplateProvider;
|
8
7
|
dataSource?: DataSourceProvider;
|
9
|
-
runtime?: CfnFunctionConfiguration.AppSyncRuntimeProperty;
|
10
8
|
};
|
11
9
|
export declare const NONE_DATA_SOURCE_NAME = "NONE_DS";
|
12
10
|
export declare class ResolverManager implements TransformerResolversManagerProvider {
|
@@ -29,14 +27,13 @@ export declare class TransformerResolver implements TransformerResolverProvider
|
|
29
27
|
private requestSlots;
|
30
28
|
private responseSlots;
|
31
29
|
private datasource?;
|
32
|
-
private runtime?;
|
33
30
|
private readonly slotMap;
|
34
31
|
private readonly slotNames;
|
35
32
|
private scope?;
|
36
|
-
constructor(typeName: string, fieldName: string, resolverLogicalId: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, requestSlots: string[], responseSlots: string[], datasource?: DataSourceProvider | undefined
|
33
|
+
constructor(typeName: string, fieldName: string, resolverLogicalId: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, requestSlots: string[], responseSlots: string[], datasource?: DataSourceProvider | undefined);
|
37
34
|
mapToStack: (stack: Stack) => void;
|
38
35
|
setScope: (scope: Construct) => void;
|
39
|
-
addToSlot: (slotName: string, requestMappingTemplate?: MappingTemplateProvider, responseMappingTemplate?: MappingTemplateProvider, dataSource?: DataSourceProvider
|
36
|
+
addToSlot: (slotName: string, requestMappingTemplate?: MappingTemplateProvider, responseMappingTemplate?: MappingTemplateProvider, dataSource?: DataSourceProvider) => void;
|
40
37
|
slotExists: (slotName: string, requestMappingTemplate?: MappingTemplateProvider, responseMappingTemplate?: MappingTemplateProvider) => boolean;
|
41
38
|
findSlot: (slotName: string, requestMappingTemplate?: MappingTemplateProvider, responseMappingTemplate?: MappingTemplateProvider) => Slot | undefined;
|
42
39
|
updateSlot: (slotName: string, requestMappingTemplate?: MappingTemplateProvider, responseMappingTemplate?: MappingTemplateProvider) => void;
|
@@ -44,7 +41,6 @@ export declare class TransformerResolver implements TransformerResolverProvider
|
|
44
41
|
synthesizeResolvers: (scope: Construct, api: GraphQLAPIProvider, slotsNames: string[]) => AppSyncFunctionConfigurationProvider[];
|
45
42
|
private substituteSlotInfo;
|
46
43
|
private ensureNoneDataSource;
|
47
|
-
private stashStatementGenerator;
|
48
44
|
}
|
49
45
|
export {};
|
50
46
|
//# sourceMappingURL=resolver.d.ts.map
|
package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../src/transformer-context/resolver.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oCAAoC,EACpC,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,2BAA2B,EAC3B,mCAAmC,EACpC,MAAM,6CAA6C,CAAC;
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../src/transformer-context/resolver.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oCAAoC,EACpC,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,2BAA2B,EAC3B,mCAAmC,EACpC,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAA4B,KAAK,EAAE,MAAM,aAAa,CAAC;AAG9D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAMvC,KAAK,IAAI,GAAG;IACV,sBAAsB,CAAC,EAAE,uBAAuB,CAAC;IACjD,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACjC,CAAC;AAGF,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAK/C,qBAAa,eAAgB,YAAW,mCAAmC;IACzE,OAAO,CAAC,SAAS,CAAuD;IAExE,qBAAqB,aACT,MAAM,aACL,MAAM,qBACE,MAAM,cACb,kBAAkB,0BACN,uBAAuB,2BACtB,uBAAuB,KAC/C,mBAAmB,CAUlB;IAEJ,wBAAwB,aACZ,MAAM,aACL,MAAM,qBACE,MAAM,cACb,kBAAkB,0BACN,uBAAuB,2BACtB,uBAAuB,KAC/C,mBAAmB,CAUlB;IAEJ,4BAA4B,aAChB,MAAM,aACL,MAAM,qBACE,MAAM,0BACD,uBAAuB,2BACtB,uBAAuB,KAC/C,mBAAmB,CASlB;IAEJ,WAAW,aAAc,MAAM,aAAa,MAAM,YAAY,2BAA2B,KAAG,2BAA2B,CAOrH;IAGF,WAAW,aAAc,MAAM,aAAa,MAAM,KAAG,2BAA2B,GAAG,SAAS,CAK1F;IAEF,WAAW,aAAc,MAAM,aAAa,MAAM,K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