@aws-amplify/graphql-api-construct 1.9.1 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +16 -16
- package/CHANGELOG.md +4 -0
- 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 +4 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +11 -11
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +6 -5
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +6 -5
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +4 -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 +9 -9
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +6 -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/lib/resolvers/rds/resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js +1 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/package.json +5 -5
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -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 +6 -5
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js.map +1 -1
- 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 +21 -18
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +4 -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 +6 -6
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +6 -6
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-transformer/package.json +15 -15
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +9 -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 +5 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.d.ts +1 -1
- 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 +2 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts +3 -1
- 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 +5 -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/lib/utils/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js +5 -4
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.d.ts +3 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js +36 -5
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +4 -3
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transform-host-provider.d.ts +1 -1
- 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/transform-host-provider.ts +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -17
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-transformer",
|
3
|
-
"version": "1.5.
|
3
|
+
"version": "1.5.4",
|
4
4
|
"description": "Amplify GraphQL Transformer Root Package",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -28,19 +28,19 @@
|
|
28
28
|
"access": "public"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-auth-transformer": "3.5.
|
32
|
-
"@aws-amplify/graphql-default-value-transformer": "2.3.
|
33
|
-
"@aws-amplify/graphql-function-transformer": "2.1.
|
34
|
-
"@aws-amplify/graphql-http-transformer": "2.1.
|
35
|
-
"@aws-amplify/graphql-index-transformer": "2.4.
|
36
|
-
"@aws-amplify/graphql-maps-to-transformer": "3.4.
|
37
|
-
"@aws-amplify/graphql-model-transformer": "2.
|
38
|
-
"@aws-amplify/graphql-predictions-transformer": "2.1.
|
39
|
-
"@aws-amplify/graphql-relational-transformer": "2.5.
|
40
|
-
"@aws-amplify/graphql-searchable-transformer": "2.7.
|
41
|
-
"@aws-amplify/graphql-sql-transformer": "0.3.
|
42
|
-
"@aws-amplify/graphql-transformer-core": "2.
|
43
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.
|
31
|
+
"@aws-amplify/graphql-auth-transformer": "3.5.2",
|
32
|
+
"@aws-amplify/graphql-default-value-transformer": "2.3.6",
|
33
|
+
"@aws-amplify/graphql-function-transformer": "2.1.22",
|
34
|
+
"@aws-amplify/graphql-http-transformer": "2.1.22",
|
35
|
+
"@aws-amplify/graphql-index-transformer": "2.4.2",
|
36
|
+
"@aws-amplify/graphql-maps-to-transformer": "3.4.14",
|
37
|
+
"@aws-amplify/graphql-model-transformer": "2.10.0",
|
38
|
+
"@aws-amplify/graphql-predictions-transformer": "2.1.22",
|
39
|
+
"@aws-amplify/graphql-relational-transformer": "2.5.2",
|
40
|
+
"@aws-amplify/graphql-searchable-transformer": "2.7.2",
|
41
|
+
"@aws-amplify/graphql-sql-transformer": "0.3.2",
|
42
|
+
"@aws-amplify/graphql-transformer-core": "2.8.0",
|
43
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.8.0"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
46
|
"@types/node": "^12.12.6",
|
@@ -87,5 +87,5 @@
|
|
87
87
|
"/__tests__/"
|
88
88
|
]
|
89
89
|
},
|
90
|
-
"gitHead": "
|
90
|
+
"gitHead": "a6bd979529c1c7686ae3e9ad928f232d181114ab"
|
91
91
|
}
|
@@ -226,6 +226,9 @@ export const getConnectionName: (modelName: string) => string;
|
|
226
226
|
// @public (undocumented)
|
227
227
|
export const getDefaultStrategyNameForDbType: (dbType: ModelDataSourceStrategySqlDbType) => string;
|
228
228
|
|
229
|
+
// @public (undocumented)
|
230
|
+
export const getField: (obj: ObjectTypeDefinitionNode, fieldName: string) => FieldDefinitionNode | undefined;
|
231
|
+
|
229
232
|
// Warning: (ae-forgotten-export) The symbol "Operation" needs to be exported by the entry point index.d.ts
|
230
233
|
//
|
231
234
|
// @public (undocumented)
|
@@ -255,6 +258,9 @@ export const getNonScalarFields: (object: ObjectTypeDefinitionNode | undefined,
|
|
255
258
|
// @public (undocumented)
|
256
259
|
export const getParameterStoreSecretPath: (secret: string, secretsKey: string, apiName: string, environmentName: string, appId: string) => string;
|
257
260
|
|
261
|
+
// @public (undocumented)
|
262
|
+
export const getPrimaryKeyFieldNodes: (type: ObjectTypeDefinitionNode) => FieldDefinitionNode[];
|
263
|
+
|
258
264
|
// @public (undocumented)
|
259
265
|
export const getPrimaryKeyFields: (type: ObjectTypeDefinitionNode) => string[];
|
260
266
|
|
@@ -285,6 +291,9 @@ function getSyncConfig(ctx: TransformerTransformSchemaStepContextProvider, typeN
|
|
285
291
|
// @public (undocumented)
|
286
292
|
export const getTable: (ctx: TransformerContextProvider, object: ObjectTypeDefinitionNode) => any;
|
287
293
|
|
294
|
+
// @public (undocumented)
|
295
|
+
export const getType: (schema: DocumentNode_2, typeName: string) => ObjectTypeDefinitionNode | undefined;
|
296
|
+
|
288
297
|
// @public (undocumented)
|
289
298
|
export class GraphQLTransform {
|
290
299
|
constructor(options: GraphQLTransformOptions);
|
@@ -3,6 +3,16 @@
|
|
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
|
+
# [2.8.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@2.7.0...@aws-amplify/graphql-transformer-core@2.8.0) (2024-05-10)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- fix reference-style relationship validation ([#2533](https://github.com/aws-amplify/amplify-category-api/issues/2533)) ([7b3cf0e](https://github.com/aws-amplify/amplify-category-api/commit/7b3cf0e6fe1d19dffd97723a57deaee693ab448b))
|
11
|
+
|
12
|
+
### Features
|
13
|
+
|
14
|
+
- add tag to SQL datasource function ([#2511](https://github.com/aws-amplify/amplify-category-api/issues/2511)) ([d64fc1e](https://github.com/aws-amplify/amplify-category-api/commit/d64fc1e4d19c923cf985e30e26ce95c565a8839b))
|
15
|
+
|
6
16
|
# [2.7.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@2.6.0...@aws-amplify/graphql-transformer-core@2.7.0) (2024-04-26)
|
7
17
|
|
8
18
|
### Bug Fixes
|
@@ -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.
|
@@ -2,7 +2,7 @@ export { constructDataSourceStrategies, constructSqlDirectiveDataSourceStrategie
|
|
2
2
|
export { UserDefinedSlot, UserDefinedResolver } from './transformation/types';
|
3
3
|
export { validateModelSchema } from './transformation/validation';
|
4
4
|
export { ConflictDetectionType, ConflictHandlerType, ResolverConfig, SyncConfig, SyncConfigOptimistic, SyncConfigServer, SyncConfigLambda, TransformConfig, } from './config/index';
|
5
|
-
export { APICategory, collectDirectives, collectDirectivesByTypeNames, constructArrayFieldsStatement, constructAuthFilterStatement, constructFieldMappingInput, constructNonScalarFieldsStatement, DirectiveWrapper, fieldsWithSqlDirective, generateGetArgumentsInput, GetArgumentsOptions, getArrayFields, getConditionInputName, getConnectionName, getDefaultStrategyNameForDbType, getFilterInputName, getImportedRDSTypeFromStrategyDbType, getKeySchema, getModelDataSourceNameForTypeName, getModelDataSourceStrategy, getNonScalarFields, getParameterStoreSecretPath, getPrimaryKeyFields, getResourceName, getResourceNamesForStrategy, getResourceNamesForStrategyName, getSortKeyFieldNames, getStrategyDbTypeFromModel, getStrategyDbTypeFromTypeNode, getSubscriptionFilterInputName, getTable, isAmplifyDynamoDbModelDataSourceStrategy, isBuiltInGraphqlNode, isDefaultDynamoDbModelDataSourceStrategy, isDynamoDbModel, isDynamoDbType, isModelType, isMutationNode, isObjectTypeDefinitionNode, isQueryNode, isSqlDbType, isSqlModel, isSqlStrategy, normalizeDbType, setResourceName, SQLLambdaResourceNames, } from './utils';
|
5
|
+
export { APICategory, collectDirectives, collectDirectivesByTypeNames, constructArrayFieldsStatement, constructAuthFilterStatement, constructFieldMappingInput, constructNonScalarFieldsStatement, DirectiveWrapper, fieldsWithSqlDirective, generateGetArgumentsInput, GetArgumentsOptions, getArrayFields, getConditionInputName, getConnectionName, getDefaultStrategyNameForDbType, getField, getFilterInputName, getImportedRDSTypeFromStrategyDbType, getKeySchema, getModelDataSourceNameForTypeName, getModelDataSourceStrategy, getNonScalarFields, getParameterStoreSecretPath, getPrimaryKeyFieldNodes, getPrimaryKeyFields, getResourceName, getResourceNamesForStrategy, getResourceNamesForStrategyName, getSortKeyFieldNames, getStrategyDbTypeFromModel, getStrategyDbTypeFromTypeNode, getSubscriptionFilterInputName, getTable, getType, isAmplifyDynamoDbModelDataSourceStrategy, isBuiltInGraphqlNode, isDefaultDynamoDbModelDataSourceStrategy, isDynamoDbModel, isDynamoDbType, isModelType, isMutationNode, isObjectTypeDefinitionNode, isQueryNode, isSqlDbType, isSqlModel, isSqlStrategy, normalizeDbType, setResourceName, SQLLambdaResourceNames, } from './utils';
|
6
6
|
export type { SetResourceNameProps } from './utils';
|
7
7
|
export * from './utils/operation-names';
|
8
8
|
export * from './errors';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,6BAA6B,EAC7B,yCAAyC,EACzC,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,4BAA4B,EAC5B,6BAA6B,EAC7B,4BAA4B,EAC5B,0BAA0B,EAC1B,iCAAiC,EACjC,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,+BAA+B,EAC/B,kBAAkB,EAClB,oCAAoC,EACpC,YAAY,EACZ,iCAAiC,EACjC,0BAA0B,EAC1B,kBAAkB,EAClB,2BAA2B,EAC3B,mBAAmB,EACnB,eAAe,EACf,2BAA2B,EAC3B,+BAA+B,EAC/B,oBAAoB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Aa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,SAAS,CAAC;AAIjB,eAAO,MAAM,gCAAgC,QAAO,MAEnD,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACL,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,sCAAsC,CAAC"}
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
exports.
|
18
|
-
exports.ObjectDefinitionWrapper = exports.InputObjectDefinitionWrapper = exports.InputFieldWrapper = exports.FieldWrapper = exports.EnumWrapper = exports.MappingTemplate = exports.getAppSyncServiceExtraDirectives = exports.SQL_SCHEMA_FILE_NAME = exports.POSTGRES_DB_TYPE = exports.MYSQL_DB_TYPE = exports.ImportedRDSType = exports.DDB_DEFAULT_DATASOURCE_STRATEGY = exports.DDB_DB_TYPE = exports.DDB_AMPLIFY_MANAGED_DATASOURCE_STRATEGY = exports.StackManager = exports.TransformerResolver = exports.TransformerAuthBase = exports.TransformerPluginBase = exports.TransformerModelEnhancerBase = exports.TransformerModelBase = exports.setResourceName = void 0;
|
17
|
+
exports.isSqlDbType = exports.isQueryNode = exports.isObjectTypeDefinitionNode = exports.isMutationNode = exports.isModelType = exports.isDynamoDbType = exports.isDynamoDbModel = exports.isDefaultDynamoDbModelDataSourceStrategy = exports.isBuiltInGraphqlNode = exports.isAmplifyDynamoDbModelDataSourceStrategy = exports.getType = exports.getTable = exports.getSubscriptionFilterInputName = exports.getStrategyDbTypeFromTypeNode = exports.getStrategyDbTypeFromModel = exports.getSortKeyFieldNames = exports.getResourceNamesForStrategyName = exports.getResourceNamesForStrategy = exports.getResourceName = exports.getPrimaryKeyFields = exports.getPrimaryKeyFieldNodes = exports.getParameterStoreSecretPath = exports.getNonScalarFields = exports.getModelDataSourceStrategy = exports.getModelDataSourceNameForTypeName = exports.getKeySchema = exports.getImportedRDSTypeFromStrategyDbType = exports.getFilterInputName = exports.getField = exports.getDefaultStrategyNameForDbType = exports.getConnectionName = exports.getConditionInputName = exports.getArrayFields = exports.generateGetArgumentsInput = exports.fieldsWithSqlDirective = exports.DirectiveWrapper = exports.constructNonScalarFieldsStatement = exports.constructFieldMappingInput = exports.constructAuthFilterStatement = exports.constructArrayFieldsStatement = exports.collectDirectivesByTypeNames = exports.collectDirectives = exports.APICategory = exports.ConflictHandlerType = exports.validateModelSchema = exports.SyncUtils = exports.GraphQLTransform = exports.getModelTypeNames = exports.constructSqlDirectiveDataSourceStrategies = exports.constructDataSourceStrategies = void 0;
|
18
|
+
exports.ObjectDefinitionWrapper = exports.InputObjectDefinitionWrapper = exports.InputFieldWrapper = exports.FieldWrapper = exports.EnumWrapper = exports.MappingTemplate = exports.getAppSyncServiceExtraDirectives = exports.SQL_SCHEMA_FILE_NAME = exports.POSTGRES_DB_TYPE = exports.MYSQL_DB_TYPE = exports.ImportedRDSType = exports.DDB_DEFAULT_DATASOURCE_STRATEGY = exports.DDB_DB_TYPE = exports.DDB_AMPLIFY_MANAGED_DATASOURCE_STRATEGY = exports.StackManager = exports.TransformerResolver = exports.TransformerAuthBase = exports.TransformerPluginBase = exports.TransformerModelEnhancerBase = exports.TransformerModelBase = exports.setResourceName = exports.normalizeDbType = exports.isSqlStrategy = exports.isSqlModel = void 0;
|
19
19
|
const graphql_1 = require("graphql");
|
20
20
|
const validation_1 = require("./transformation/validation");
|
21
21
|
var transformation_1 = require("./transformation");
|
@@ -43,6 +43,7 @@ Object.defineProperty(exports, "getArrayFields", { enumerable: true, get: functi
|
|
43
43
|
Object.defineProperty(exports, "getConditionInputName", { enumerable: true, get: function () { return utils_1.getConditionInputName; } });
|
44
44
|
Object.defineProperty(exports, "getConnectionName", { enumerable: true, get: function () { return utils_1.getConnectionName; } });
|
45
45
|
Object.defineProperty(exports, "getDefaultStrategyNameForDbType", { enumerable: true, get: function () { return utils_1.getDefaultStrategyNameForDbType; } });
|
46
|
+
Object.defineProperty(exports, "getField", { enumerable: true, get: function () { return utils_1.getField; } });
|
46
47
|
Object.defineProperty(exports, "getFilterInputName", { enumerable: true, get: function () { return utils_1.getFilterInputName; } });
|
47
48
|
Object.defineProperty(exports, "getImportedRDSTypeFromStrategyDbType", { enumerable: true, get: function () { return utils_1.getImportedRDSTypeFromStrategyDbType; } });
|
48
49
|
Object.defineProperty(exports, "getKeySchema", { enumerable: true, get: function () { return utils_1.getKeySchema; } });
|
@@ -50,6 +51,7 @@ Object.defineProperty(exports, "getModelDataSourceNameForTypeName", { enumerable
|
|
50
51
|
Object.defineProperty(exports, "getModelDataSourceStrategy", { enumerable: true, get: function () { return utils_1.getModelDataSourceStrategy; } });
|
51
52
|
Object.defineProperty(exports, "getNonScalarFields", { enumerable: true, get: function () { return utils_1.getNonScalarFields; } });
|
52
53
|
Object.defineProperty(exports, "getParameterStoreSecretPath", { enumerable: true, get: function () { return utils_1.getParameterStoreSecretPath; } });
|
54
|
+
Object.defineProperty(exports, "getPrimaryKeyFieldNodes", { enumerable: true, get: function () { return utils_1.getPrimaryKeyFieldNodes; } });
|
53
55
|
Object.defineProperty(exports, "getPrimaryKeyFields", { enumerable: true, get: function () { return utils_1.getPrimaryKeyFields; } });
|
54
56
|
Object.defineProperty(exports, "getResourceName", { enumerable: true, get: function () { return utils_1.getResourceName; } });
|
55
57
|
Object.defineProperty(exports, "getResourceNamesForStrategy", { enumerable: true, get: function () { return utils_1.getResourceNamesForStrategy; } });
|
@@ -59,6 +61,7 @@ Object.defineProperty(exports, "getStrategyDbTypeFromModel", { enumerable: true,
|
|
59
61
|
Object.defineProperty(exports, "getStrategyDbTypeFromTypeNode", { enumerable: true, get: function () { return utils_1.getStrategyDbTypeFromTypeNode; } });
|
60
62
|
Object.defineProperty(exports, "getSubscriptionFilterInputName", { enumerable: true, get: function () { return utils_1.getSubscriptionFilterInputName; } });
|
61
63
|
Object.defineProperty(exports, "getTable", { enumerable: true, get: function () { return utils_1.getTable; } });
|
64
|
+
Object.defineProperty(exports, "getType", { enumerable: true, get: function () { return utils_1.getType; } });
|
62
65
|
Object.defineProperty(exports, "isAmplifyDynamoDbModelDataSourceStrategy", { enumerable: true, get: function () { return utils_1.isAmplifyDynamoDbModelDataSourceStrategy; } });
|
63
66
|
Object.defineProperty(exports, "isBuiltInGraphqlNode", { enumerable: true, get: function () { return utils_1.isBuiltInGraphqlNode; } });
|
64
67
|
Object.defineProperty(exports, "isDefaultDynamoDbModelDataSourceStrategy", { enumerable: true, get: function () { return utils_1.isDefaultDynamoDbModelDataSourceStrategy; } });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qCAAgC;AAChC,4DAAwE;AAExE,mDAO0B;AANxB,+HAAA,6BAA6B,OAAA;AAC7B,2IAAA,yCAAyC,OAAA;AACzC,mHAAA,iBAAiB,OAAA;AACjB,kHAAA,gBAAgB,OAAA;AAEhB,2GAAA,SAAS,OAAA;AAGX,0DAAkE;AAAzD,iHAAA,mBAAmB,OAAA;AAC5B,wCASwB;AAPtB,4GAAA,mBAAmB,OAAA;AAQrB,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qCAAgC;AAChC,4DAAwE;AAExE,mDAO0B;AANxB,+HAAA,6BAA6B,OAAA;AAC7B,2IAAA,yCAAyC,OAAA;AACzC,mHAAA,iBAAiB,OAAA;AACjB,kHAAA,gBAAgB,OAAA;AAEhB,2GAAA,SAAS,OAAA;AAGX,0DAAkE;AAAzD,iHAAA,mBAAmB,OAAA;AAC5B,wCASwB;AAPtB,4GA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AAA,aAAa,OAAA;AACb,wGAAA,eAAe,OAAA;AACf,wGAAA,eAAe,OAAA;AAIjB,0DAAwC;AACxC,2CAAyB;AACzB,oFAKkD;AAJhD,+HAAA,oBAAoB,OAAA;AACpB,uIAAA,4BAA4B,OAAA;AAC5B,gIAAA,qBAAqB,OAAA;AACrB,8HAAA,mBAAmB,OAAA;AAErB,6DAA0E;AAAjE,0HAAA,mBAAmB,OAAA;AAAE,mHAAA,YAAY,OAAA;AAC1C,iCAaiB;AAZf,gIAAA,uCAAuC,OAAA;AACvC,oGAAA,WAAW,OAAA;AACX,wHAAA,+BAA+B,OAAA;AAI/B,wGAAA,eAAe,OAAA;AACf,sGAAA,aAAa,OAAA;AACb,yGAAA,gBAAgB,OAAA;AAGhB,6GAAA,oBAAoB,OAAA;AAKf,MAAM,gCAAgC,GAAG,GAAW,EAAE;IAC3D,OAAO,IAAA,eAAK,EAAC,sCAAyB,CAAC,CAAC;AAC1C,CAAC,CAAC;AAFW,QAAA,gCAAgC,oCAE3C;AAEF,2CAA+C;AAAtC,6GAAA,eAAe,OAAA;AACxB,kFAM8C;AAL5C,wHAAA,WAAW,OAAA;AACX,yHAAA,YAAY,OAAA;AACZ,8HAAA,iBAAiB,OAAA;AACjB,yIAAA,4BAA4B,OAAA;AAC5B,oIAAA,uBAAuB,OAAA"}
|
@@ -31,7 +31,7 @@ export declare class DefaultTransformHost implements TransformHostProvider {
|
|
31
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
|
-
} | undefined, timeout?: Duration, scope?: Construct, vpc?: VpcConfig) => IFunction;
|
34
|
+
} | undefined, timeout?: Duration, scope?: Construct, vpc?: VpcConfig, description?: string) => IFunction;
|
35
35
|
protected doAddNoneDataSource(id: string, options?: DataSourceOptions, scope?: Construct): NoneDataSource;
|
36
36
|
protected doAddDynamoDbDataSource(id: string, table: ITable, options?: DynamoDbDataSourceOptions, scope?: Construct): DynamoDbDataSource;
|
37
37
|
protected doAddHttpDataSource(id: string, endpoint: string, options?: HttpDataSourceOptions, scope?: Construct): HttpDataSource;
|
@@ -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,EACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAA+B,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACxG,OAAO,EAAE,QAAQ,EAAS,MAAM,aAAa,CAAC;AAG9C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC;CAC1B;AAED,qBAAa,oBAAqB,YAAW,qBAAqB;IAChE,OAAO,CAAC,WAAW,CAA0C;IAE7D,OAAO,CAAC,SAAS,CAAuC;IAExD,OAAO,CAAC,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SAAS,GAAG,kBAAkB;IAwBxI,SAAS,CAAC,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,EAAE,KAAK,CAAC,EAAE,SAAS,GAAG,cAAc;IAyB/H,SAAS,CAAC,yBAAyB,CACjC,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,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"}
|
@@ -136,7 +136,7 @@ class DefaultTransformHost {
|
|
136
136
|
}
|
137
137
|
throw new Error('Resolver needs either dataSourceName or pipelineConfig to be passed');
|
138
138
|
};
|
139
|
-
this.addLambdaFunction = (functionName, functionKey, handlerName, filePath, runtime, layers, role, environment, timeout, scope, vpc) => {
|
139
|
+
this.addLambdaFunction = (functionName, functionKey, handlerName, filePath, runtime, layers, role, environment, timeout, scope, vpc, description) => {
|
140
140
|
const dummyCode = 'if __name__ == "__main__":';
|
141
141
|
const fn = new aws_lambda_1.Function(scope || this.api, functionName, {
|
142
142
|
code: aws_lambda_1.Code.fromInline(dummyCode),
|
@@ -146,6 +146,7 @@ class DefaultTransformHost {
|
|
146
146
|
layers,
|
147
147
|
environment,
|
148
148
|
timeout,
|
149
|
+
description,
|
149
150
|
});
|
150
151
|
fn.addLayers();
|
151
152
|
const cfnFn = fn.node.defaultChild;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transform-host.js","sourceRoot":"","sources":["../src/transform-host.ts"],"names":[],"mappings":";;;;;;AAOA,yDAUiC;AAGjC,uDAAwG;AACxG,6CAA8C;AAC9C,2EAA4F;AAC5F,8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e,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"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DefinitionNode, FieldDefinitionNode, InterfaceTypeDefinitionNode, ObjectTypeDefinitionNode } from 'graphql';
|
1
|
+
import { DefinitionNode, DocumentNode, FieldDefinitionNode, InterfaceTypeDefinitionNode, ObjectTypeDefinitionNode } from 'graphql';
|
2
2
|
export declare const isObjectTypeDefinitionNode: (obj: DefinitionNode) => obj is ObjectTypeDefinitionNode;
|
3
3
|
export declare const isMutationType: (typeName: string) => typeName is "Mutation";
|
4
4
|
export declare const isQueryType: (typeName: string) => typeName is "Query";
|
@@ -25,4 +25,6 @@ export declare const isBuiltInGraphqlNode: (obj: DefinitionNode) => obj is Objec
|
|
25
25
|
};
|
26
26
|
});
|
27
27
|
export declare const fieldsWithSqlDirective: (obj: ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode) => FieldDefinitionNode[];
|
28
|
+
export declare const getField: (obj: ObjectTypeDefinitionNode, fieldName: string) => FieldDefinitionNode | undefined;
|
29
|
+
export declare const getType: (schema: DocumentNode, typeName: string) => ObjectTypeDefinitionNode | undefined;
|
28
30
|
//# sourceMappingURL=graphql-utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql-utils.d.ts","sourceRoot":"","sources":["../../src/utils/graphql-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,2BAA2B,EAAQ,wBAAwB,EAAE,MAAM,SAAS,CAAC;
|
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;UACuD;QAAE,KAAK,EAAE,UAAU,CAAA;KAAE;EAEhG,CAAC;AAEF,eAAO,MAAM,WAAW,QACjB,cAAc;UACuD;QAAE,KAAK,EAAE,OAAO,CAAA;KAAE;EAE7F,CAAC;AAEF,eAAO,MAAM,kBAAkB,QACxB,cAAc;UACuD;QAAE,KAAK,EAAE,cAAc,CAAA;KAAE;EAEpG,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAC1B,cAAc;UACuD;QAAE,KAAK,EAAE,UAAU,GAAG,OAAO,CAAA;KAAE;EAE1G,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAS,wBAAwB,GAAG,2BAA2B,KAAG,mBAAmB,EAEvH,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAS,wBAAwB,aAAa,MAAM,KAAG,mBAAmB,GAAG,SAC7C,CAAC;AAEtD,eAAO,MAAM,OAAO,WAAY,YAAY,YAAY,MAAM,KAAG,wBAAwB,GAAG,SAC8C,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.fieldsWithSqlDirective = exports.isBuiltInGraphqlNode = exports.isSubscriptionNode = exports.isQueryNode = exports.isMutationNode = exports.isBuiltInGraphqlType = exports.isSubscriptionType = exports.isQueryType = exports.isMutationType = exports.isObjectTypeDefinitionNode = void 0;
|
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;
|
4
4
|
const graphql_1 = require("graphql");
|
5
5
|
const SQL_DIRECTIVE_NAME = 'sql';
|
6
6
|
const isObjectTypeDefinitionNode = (obj) => {
|
@@ -36,4 +36,8 @@ const fieldsWithSqlDirective = (obj) => {
|
|
36
36
|
return (_b = (_a = obj.fields) === null || _a === void 0 ? void 0 : _a.filter((field) => { var _a; return (_a = field.directives) === null || _a === void 0 ? void 0 : _a.some((directive) => directive.name.value === SQL_DIRECTIVE_NAME); })) !== null && _b !== void 0 ? _b : [];
|
37
37
|
};
|
38
38
|
exports.fieldsWithSqlDirective = fieldsWithSqlDirective;
|
39
|
+
const getField = (obj, fieldName) => { var _a; return (_a = obj.fields) === null || _a === void 0 ? void 0 : _a.find((f) => f.name.value === fieldName); };
|
40
|
+
exports.getField = getField;
|
41
|
+
const getType = (schema, typeName) => schema.definitions.find((def) => (0, exports.isObjectTypeDefinitionNode)(def) && def.name.value === typeName);
|
42
|
+
exports.getType = getType;
|
39
43
|
//# sourceMappingURL=graphql-utils.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql-utils.js","sourceRoot":"","sources":["../../src/utils/graphql-utils.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"graphql-utils.js","sourceRoot":"","sources":["../../src/utils/graphql-utils.ts"],"names":[],"mappings":";;;AAAA,qCAAyI;AAEzI,MAAM,kBAAkB,GAAG,KAAK,CAAC;AAE1B,MAAM,0BAA0B,GAAG,CAAC,GAAmB,EAAmC,EAAE;IACjG,OAAO,GAAG,CAAC,IAAI,KAAK,cAAI,CAAC,sBAAsB,IAAI,GAAG,CAAC,IAAI,KAAK,cAAI,CAAC,yBAAyB,CAAC;AAC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AAG,CAClC,GAAmB,EAC0F,EAAE;IAC/G,OAAO,IAAA,sBAAc,EAAC,GAAG,CAAC,IAAI,IAAA,mBAAW,EAAC,GAAG,CAAC,IAAI,IAAA,0BAAkB,EAAC,GAAG,CAAC,CAAC;AAC5E,CAAC,CAAC;AAJW,QAAA,oBAAoB,wBAI/B;AAEK,MAAM,sBAAsB,GAAG,CAAC,GAA2D,EAAyB,EAAE;;IAC3H,OAAO,MAAA,MAAA,GAAG,CAAC,MAAM,0CAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,WAAC,OAAA,MAAA,KAAK,CAAC,UAAU,0CAAE,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,KAAK,kBAAkB,CAAC,CAAA,EAAA,CAAC,mCAAI,EAAE,CAAC;AACjI,CAAC,CAAC;AAFW,QAAA,sBAAsB,0BAEjC;AAEK,MAAM,QAAQ,GAAG,CAAC,GAA6B,EAAE,SAAiB,EAAmC,EAAE,WAC5G,OAAA,MAAA,GAAG,CAAC,MAAM,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,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"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { getConditionInputName, getConnectionName, getFilterInputName, getPrimaryKeyFieldNodes, getPrimaryKeyFields, getSubscriptionFilterInputName, } from './model-util';
|
2
2
|
export { DirectiveWrapper, GetArgumentsOptions, generateGetArgumentsInput } from './directive-wrapper';
|
3
3
|
export { collectDirectives, collectDirectivesByTypeNames } from './type-map-utils';
|
4
4
|
export { stripDirectives } from './strip-directives';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,8BAA8B,GAC/B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,oBAAoB,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC7G,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,0BAA0B,EAC1B,iCAAiC,EACjC,cAAc,EACd,kBAAkB,EAClB,2BAA2B,GAC5B,MAAM,YAAY,CAAC;AACpB,eAAO,MAAM,WAAW,QAAQ,CAAC;AACjC,OAAO,EACL,eAAe,EACf,+BAA+B,EAC/B,eAAe,EACf,2BAA2B,EAC3B,+BAA+B,EAC/B,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,cAAc,iBAAiB,CAAC"}
|
@@ -14,13 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
exports.getResourceNamesForStrategyName = exports.getResourceNamesForStrategy = exports.getResourceName = exports.getDefaultStrategyNameForDbType = exports.setResourceName = exports.APICategory = exports.getParameterStoreSecretPath = exports.getNonScalarFields = exports.getArrayFields = exports.constructNonScalarFieldsStatement = exports.constructFieldMappingInput = exports.constructAuthFilterStatement = exports.constructArrayFieldsStatement = exports.DEFAULT_SCHEMA_DEFINITION = exports.getStrategyDbTypeFromTypeNode = exports.getSortKeyFieldNames = exports.getKeySchema = exports.getTable = exports.stripDirectives = exports.collectDirectivesByTypeNames = exports.collectDirectives = exports.generateGetArgumentsInput = exports.DirectiveWrapper = exports.
|
17
|
+
exports.getResourceNamesForStrategyName = exports.getResourceNamesForStrategy = exports.getResourceName = exports.getDefaultStrategyNameForDbType = exports.setResourceName = exports.APICategory = exports.getParameterStoreSecretPath = exports.getNonScalarFields = exports.getArrayFields = exports.constructNonScalarFieldsStatement = exports.constructFieldMappingInput = exports.constructAuthFilterStatement = exports.constructArrayFieldsStatement = exports.DEFAULT_SCHEMA_DEFINITION = exports.getStrategyDbTypeFromTypeNode = exports.getSortKeyFieldNames = exports.getKeySchema = exports.getTable = exports.stripDirectives = exports.collectDirectivesByTypeNames = exports.collectDirectives = exports.generateGetArgumentsInput = exports.DirectiveWrapper = exports.getSubscriptionFilterInputName = exports.getPrimaryKeyFields = exports.getPrimaryKeyFieldNodes = exports.getFilterInputName = exports.getConnectionName = exports.getConditionInputName = void 0;
|
18
18
|
var model_util_1 = require("./model-util");
|
19
|
-
Object.defineProperty(exports, "getPrimaryKeyFields", { enumerable: true, get: function () { return model_util_1.getPrimaryKeyFields; } });
|
20
|
-
Object.defineProperty(exports, "getFilterInputName", { enumerable: true, get: function () { return model_util_1.getFilterInputName; } });
|
21
19
|
Object.defineProperty(exports, "getConditionInputName", { enumerable: true, get: function () { return model_util_1.getConditionInputName; } });
|
22
|
-
Object.defineProperty(exports, "getSubscriptionFilterInputName", { enumerable: true, get: function () { return model_util_1.getSubscriptionFilterInputName; } });
|
23
20
|
Object.defineProperty(exports, "getConnectionName", { enumerable: true, get: function () { return model_util_1.getConnectionName; } });
|
21
|
+
Object.defineProperty(exports, "getFilterInputName", { enumerable: true, get: function () { return model_util_1.getFilterInputName; } });
|
22
|
+
Object.defineProperty(exports, "getPrimaryKeyFieldNodes", { enumerable: true, get: function () { return model_util_1.getPrimaryKeyFieldNodes; } });
|
23
|
+
Object.defineProperty(exports, "getPrimaryKeyFields", { enumerable: true, get: function () { return model_util_1.getPrimaryKeyFields; } });
|
24
|
+
Object.defineProperty(exports, "getSubscriptionFilterInputName", { enumerable: true, get: function () { return model_util_1.getSubscriptionFilterInputName; } });
|
24
25
|
var directive_wrapper_1 = require("./directive-wrapper");
|
25
26
|
Object.defineProperty(exports, "DirectiveWrapper", { enumerable: true, get: function () { return directive_wrapper_1.DirectiveWrapper; } });
|
26
27
|
Object.defineProperty(exports, "generateGetArgumentsInput", { enumerable: true, get: function () { return directive_wrapper_1.generateGetArgumentsInput; } });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAOsB;AANpB,mHAAA,qBAAqB,OAAA;AACrB,+GAAA,iBAAiB,OAAA;AACjB,gHAAA,kBAAkB,OAAA;AAClB,qHAAA,uBAAuB,OAAA;AACvB,iHAAA,mBAAmB,OAAA;AACnB,4HAAA,8BAA8B,OAAA;AAEhC,yDAAuG;AAA9F,qHAAA,gBAAgB,OAAA;AAAuB,8HAAA,yBAAyB,OAAA;AACzE,mDAAmF;AAA1E,mHAAA,iBAAiB,OAAA;AAAE,8HAAA,4BAA4B,OAAA;AACxD,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,+CAA6G;AAApG,wGAAA,QAAQ,OAAA;AAAE,4GAAA,YAAY,OAAA;AAAE,oHAAA,oBAAoB,OAAA;AAAE,6HAAA,6BAA6B,OAAA;AACpF,iDAA4D;AAAnD,0HAAA,yBAAyB,OAAA;AAClC,uCAQoB;AAPlB,yHAAA,6BAA6B,OAAA;AAC7B,wHAAA,4BAA4B,OAAA;AAC5B,sHAAA,0BAA0B,OAAA;AAC1B,6HAAA,iCAAiC,OAAA;AACjC,0GAAA,cAAc,OAAA;AACd,8GAAA,kBAAkB,OAAA;AAClB,uHAAA,2BAA2B,OAAA;AAEhB,QAAA,WAAW,GAAG,KAAK,CAAC;AACjC,iDAOyB;AANvB,gHAAA,eAAe,OAAA;AACf,gIAAA,+BAA+B,OAAA;AAC/B,gHAAA,eAAe,OAAA;AACf,4HAAA,2BAA2B,OAAA;AAC3B,gIAAA,+BAA+B,OAAA;AAIjC,oEAAkD;AAClD,kDAAgC"}
|
@@ -1,7 +1,9 @@
|
|
1
|
-
import { ObjectTypeDefinitionNode } from 'graphql';
|
1
|
+
import { FieldDefinitionNode, ObjectTypeDefinitionNode } from 'graphql';
|
2
|
+
export declare const getPrimaryKeyFieldNodes: (type: ObjectTypeDefinitionNode) => FieldDefinitionNode[];
|
2
3
|
export declare const getPrimaryKeyFields: (type: ObjectTypeDefinitionNode) => string[];
|
3
4
|
export declare const getFilterInputName: (modelName: string) => string;
|
4
5
|
export declare const getConditionInputName: (modelName: string) => string;
|
5
6
|
export declare const getSubscriptionFilterInputName: (modelName: string) => string;
|
6
7
|
export declare const getConnectionName: (modelName: string) => string;
|
8
|
+
export declare const getImplicitlyDefinedIdField: () => FieldDefinitionNode;
|
7
9
|
//# sourceMappingURL=model-util.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"model-util.d.ts","sourceRoot":"","sources":["../../src/utils/model-util.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,wBAAwB,
|
1
|
+
{"version":3,"file":"model-util.d.ts","sourceRoot":"","sources":["../../src/utils/model-util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAiB,wBAAwB,EAA8B,MAAM,SAAS,CAAC;AAWnH,eAAO,MAAM,uBAAuB,SAAU,wBAAwB,KAAG,mBAAmB,EAsB3F,CAAC;AAKF,eAAO,MAAM,mBAAmB,SAAU,wBAAwB,KAAG,MAAM,EAE1E,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,KAAG,MAEtD,CAAC;AAEF,eAAO,MAAM,qBAAqB,cAAe,MAAM,KAAG,MAEzD,CAAC;AAEF,eAAO,MAAM,8BAA8B,cAAe,MAAM,KAAG,MAElE,CAAC;AAEF,eAAO,MAAM,iBAAiB,cAAe,MAAM,KAAG,MAErD,CAAC;AAEF,eAAO,MAAM,2BAA2B,QAAO,mBAgB7C,CAAC"}
|