@ttoss/appsync-api 0.15.6 → 0.16.0

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 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.6",
83
+ version: "0.16.0",
84
84
  description: "A library for building GraphQL APIs for AWS AppSync.",
85
85
  license: "UNLICENSED",
86
86
  author: "ttoss",
@@ -110,11 +110,11 @@ var package_default = {
110
110
  "@ttoss/config": "workspace:^",
111
111
  "@ttoss/graphql-api": "workspace:^",
112
112
  "@ttoss/relay-amplify": "workspace:^",
113
- "@types/aws-lambda": "^8.10.115",
113
+ "@types/aws-lambda": "^8.10.119",
114
114
  carlin: "workspace:^",
115
115
  graphql: "^16.6.0",
116
116
  "graphql-shield": "^7.6.5",
117
- jest: "^29.6.1",
117
+ jest: "^29.6.2",
118
118
  tsup: "^7.1.0"
119
119
  },
120
120
  keywords: ["api", "appsync", "aws", "graphql"],
@@ -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
- "Fn::Join": [":", [{
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.6",
115
+ version: "0.16.0",
116
116
  description: "A library for building GraphQL APIs for AWS AppSync.",
117
117
  license: "UNLICENSED",
118
118
  author: "ttoss",
@@ -142,11 +142,11 @@ var package_default = {
142
142
  "@ttoss/config": "workspace:^",
143
143
  "@ttoss/graphql-api": "workspace:^",
144
144
  "@ttoss/relay-amplify": "workspace:^",
145
- "@types/aws-lambda": "^8.10.115",
145
+ "@types/aws-lambda": "^8.10.119",
146
146
  carlin: "workspace:^",
147
147
  graphql: "^16.6.0",
148
148
  "graphql-shield": "^7.6.5",
149
- jest: "^29.6.1",
149
+ jest: "^29.6.2",
150
150
  tsup: "^7.1.0"
151
151
  },
152
152
  keywords: ["api", "appsync", "aws", "graphql"],
@@ -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
- "Fn::Join": [":", [{
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.6",
3
+ "version": "0.16.0",
4
4
  "description": "A library for building GraphQL APIs for AWS AppSync.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -21,22 +21,22 @@
21
21
  "sideEffects": false,
22
22
  "typings": "dist/index.d.ts",
23
23
  "dependencies": {
24
- "@ttoss/cloudformation": "^0.7.7"
24
+ "@ttoss/cloudformation": "^0.7.8"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "graphql": "^16.6.0",
28
- "@ttoss/graphql-api": "^0.3.5"
28
+ "@ttoss/graphql-api": "^0.3.6"
29
29
  },
30
30
  "devDependencies": {
31
- "@types/aws-lambda": "^8.10.115",
31
+ "@types/aws-lambda": "^8.10.119",
32
32
  "graphql": "^16.6.0",
33
33
  "graphql-shield": "^7.6.5",
34
- "jest": "^29.6.1",
34
+ "jest": "^29.6.2",
35
35
  "tsup": "^7.1.0",
36
- "@ttoss/config": "^1.30.5",
37
- "@ttoss/graphql-api": "^0.3.5",
38
- "@ttoss/relay-amplify": "^0.4.13",
39
- "carlin": "^1.30.0"
36
+ "@ttoss/config": "^1.30.6",
37
+ "@ttoss/graphql-api": "^0.3.6",
38
+ "@ttoss/relay-amplify": "^0.4.14",
39
+ "carlin": "^1.30.2"
40
40
  },
41
41
  "keywords": [
42
42
  "api",
@@ -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
- 'Fn::Join': [
149
- ':',
150
- [{ Ref: 'AWS::StackName' }, AppSyncGraphQLApiLogicalId],
151
- ],
152
+ Ref: 'AWS::StackName',
152
153
  },
153
154
  },
154
155
  },