@ttoss/appsync-api 0.15.6 → 0.15.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +5 -4
- package/dist/index.js +5 -4
- package/package.json +2 -2
- package/src/createApiTemplate.ts +5 -4
package/dist/esm/index.js
CHANGED
|
@@ -80,7 +80,7 @@ var getPackageLambdaLayerStackName = packageName => {
|
|
|
80
80
|
// package.json
|
|
81
81
|
var package_default = {
|
|
82
82
|
name: "@ttoss/appsync-api",
|
|
83
|
-
version: "0.15.
|
|
83
|
+
version: "0.15.7",
|
|
84
84
|
description: "A library for building GraphQL APIs for AWS AppSync.",
|
|
85
85
|
license: "UNLICENSED",
|
|
86
86
|
author: "ttoss",
|
|
@@ -193,14 +193,15 @@ var createApiTemplate = ({
|
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
195
|
Resources: {
|
|
196
|
+
/**
|
|
197
|
+
* https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-name
|
|
198
|
+
*/
|
|
196
199
|
[AppSyncGraphQLApiLogicalId]: {
|
|
197
200
|
Type: "AWS::AppSync::GraphQLApi",
|
|
198
201
|
Properties: {
|
|
199
202
|
AuthenticationType: authenticationType,
|
|
200
203
|
Name: {
|
|
201
|
-
|
|
202
|
-
Ref: "AWS::StackName"
|
|
203
|
-
}, AppSyncGraphQLApiLogicalId]]
|
|
204
|
+
Ref: "AWS::StackName"
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
},
|
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ var getPackageLambdaLayerStackName = packageName => {
|
|
|
112
112
|
// package.json
|
|
113
113
|
var package_default = {
|
|
114
114
|
name: "@ttoss/appsync-api",
|
|
115
|
-
version: "0.15.
|
|
115
|
+
version: "0.15.7",
|
|
116
116
|
description: "A library for building GraphQL APIs for AWS AppSync.",
|
|
117
117
|
license: "UNLICENSED",
|
|
118
118
|
author: "ttoss",
|
|
@@ -225,14 +225,15 @@ var createApiTemplate = ({
|
|
|
225
225
|
}
|
|
226
226
|
},
|
|
227
227
|
Resources: {
|
|
228
|
+
/**
|
|
229
|
+
* https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-name
|
|
230
|
+
*/
|
|
228
231
|
[AppSyncGraphQLApiLogicalId]: {
|
|
229
232
|
Type: "AWS::AppSync::GraphQLApi",
|
|
230
233
|
Properties: {
|
|
231
234
|
AuthenticationType: authenticationType,
|
|
232
235
|
Name: {
|
|
233
|
-
|
|
234
|
-
Ref: "AWS::StackName"
|
|
235
|
-
}, AppSyncGraphQLApiLogicalId]]
|
|
236
|
+
Ref: "AWS::StackName"
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
239
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/appsync-api",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.7",
|
|
4
4
|
"description": "A library for building GraphQL APIs for AWS AppSync.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@ttoss/config": "^1.30.5",
|
|
37
37
|
"@ttoss/graphql-api": "^0.3.5",
|
|
38
38
|
"@ttoss/relay-amplify": "^0.4.13",
|
|
39
|
-
"carlin": "^1.30.
|
|
39
|
+
"carlin": "^1.30.1"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
42
42
|
"api",
|
package/src/createApiTemplate.ts
CHANGED
|
@@ -47,6 +47,7 @@ export const createApiTemplate = ({
|
|
|
47
47
|
}: {
|
|
48
48
|
additionalAuthenticationProviders?: AuthenticationType[];
|
|
49
49
|
authenticationType?: AuthenticationType;
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
50
51
|
schemaComposer: SchemaComposer<any>;
|
|
51
52
|
dataSource: {
|
|
52
53
|
roleArn: StringOrImport;
|
|
@@ -140,15 +141,15 @@ export const createApiTemplate = ({
|
|
|
140
141
|
},
|
|
141
142
|
},
|
|
142
143
|
Resources: {
|
|
144
|
+
/**
|
|
145
|
+
* https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-name
|
|
146
|
+
*/
|
|
143
147
|
[AppSyncGraphQLApiLogicalId]: {
|
|
144
148
|
Type: 'AWS::AppSync::GraphQLApi',
|
|
145
149
|
Properties: {
|
|
146
150
|
AuthenticationType: authenticationType,
|
|
147
151
|
Name: {
|
|
148
|
-
'
|
|
149
|
-
':',
|
|
150
|
-
[{ Ref: 'AWS::StackName' }, AppSyncGraphQLApiLogicalId],
|
|
151
|
-
],
|
|
152
|
+
Ref: 'AWS::StackName',
|
|
152
153
|
},
|
|
153
154
|
},
|
|
154
155
|
},
|