@ttoss/appsync-api 0.22.0 → 0.22.2

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
@@ -1,4 +1,9 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
+ var __defProp = Object.defineProperty;
3
+ var __name = (target, value) => __defProp(target, "name", {
4
+ value,
5
+ configurable: true
6
+ });
2
7
 
3
8
  // src/createApiTemplate.ts
4
9
  import { graphql } from "@ttoss/graphql-api";
@@ -7,7 +12,7 @@ var AppSyncGraphQLSchemaLogicalId = "AppSyncGraphQLSchema";
7
12
  var AppSyncLambdaFunctionLogicalId = "AppSyncLambdaFunction";
8
13
  var AppSyncLambdaFunctionAppSyncDataSourceLogicalId = "AppSyncLambdaFunctionAppSyncDataSource";
9
14
  var AppSyncGraphQLApiKeyLogicalId = "AppSyncGraphQLApiKey";
10
- var createApiTemplate = ({
15
+ var createApiTemplate = /* @__PURE__ */__name(({
11
16
  additionalAuthenticationProviders,
12
17
  authenticationType = "AMAZON_COGNITO_USER_POOLS",
13
18
  schemaComposer,
@@ -57,8 +62,8 @@ var createApiTemplate = ({
57
62
  },
58
63
  Resources: {
59
64
  /**
60
- * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-name
61
- */
65
+ * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-name
66
+ */
62
67
  [AppSyncGraphQLApiLogicalId]: {
63
68
  Type: "AWS::AppSync::GraphQLApi",
64
69
  Properties: {
@@ -97,9 +102,9 @@ var createApiTemplate = ({
97
102
  Role: lambdaFunction.roleArn,
98
103
  Runtime: "nodejs22.x",
99
104
  /**
100
- * https://docs.aws.amazon.com/general/latest/gr/appsync.html
101
- * Request execution time for mutations, queries, and subscriptions: 30 seconds
102
- */
105
+ * https://docs.aws.amazon.com/general/latest/gr/appsync.html
106
+ * Request execution time for mutations, queries, and subscriptions: 30 seconds
107
+ */
103
108
  Timeout: 29
104
109
  }
105
110
  },
@@ -271,11 +276,11 @@ var createApiTemplate = ({
271
276
  };
272
277
  }
273
278
  return template;
274
- };
279
+ }, "createApiTemplate");
275
280
 
276
281
  // src/createAppSyncResolverHandler.ts
277
282
  import { buildSchema } from "@ttoss/graphql-api";
278
- var createAppSyncResolverHandler = ({
283
+ var createAppSyncResolverHandler = /* @__PURE__ */__name(({
279
284
  ...buildSchemaInput
280
285
  }) => {
281
286
  return async (event, appSyncHandlerContext) => {
@@ -338,5 +343,5 @@ var createAppSyncResolverHandler = ({
338
343
  }
339
344
  return response;
340
345
  };
341
- };
346
+ }, "createAppSyncResolverHandler");
342
347
  export { createApiTemplate, createAppSyncResolverHandler };
package/dist/index.js CHANGED
@@ -5,6 +5,10 @@ var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __name = (target, value) => __defProp(target, "name", {
9
+ value,
10
+ configurable: true
11
+ });
8
12
  var __export = (target, all) => {
9
13
  for (var name in all) __defProp(target, name, {
10
14
  get: all[name],
@@ -39,7 +43,7 @@ var AppSyncGraphQLSchemaLogicalId = "AppSyncGraphQLSchema";
39
43
  var AppSyncLambdaFunctionLogicalId = "AppSyncLambdaFunction";
40
44
  var AppSyncLambdaFunctionAppSyncDataSourceLogicalId = "AppSyncLambdaFunctionAppSyncDataSource";
41
45
  var AppSyncGraphQLApiKeyLogicalId = "AppSyncGraphQLApiKey";
42
- var createApiTemplate = ({
46
+ var createApiTemplate = /* @__PURE__ */__name(({
43
47
  additionalAuthenticationProviders,
44
48
  authenticationType = "AMAZON_COGNITO_USER_POOLS",
45
49
  schemaComposer,
@@ -89,8 +93,8 @@ var createApiTemplate = ({
89
93
  },
90
94
  Resources: {
91
95
  /**
92
- * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-name
93
- */
96
+ * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-name
97
+ */
94
98
  [AppSyncGraphQLApiLogicalId]: {
95
99
  Type: "AWS::AppSync::GraphQLApi",
96
100
  Properties: {
@@ -129,9 +133,9 @@ var createApiTemplate = ({
129
133
  Role: lambdaFunction.roleArn,
130
134
  Runtime: "nodejs22.x",
131
135
  /**
132
- * https://docs.aws.amazon.com/general/latest/gr/appsync.html
133
- * Request execution time for mutations, queries, and subscriptions: 30 seconds
134
- */
136
+ * https://docs.aws.amazon.com/general/latest/gr/appsync.html
137
+ * Request execution time for mutations, queries, and subscriptions: 30 seconds
138
+ */
135
139
  Timeout: 29
136
140
  }
137
141
  },
@@ -303,11 +307,11 @@ var createApiTemplate = ({
303
307
  };
304
308
  }
305
309
  return template;
306
- };
310
+ }, "createApiTemplate");
307
311
 
308
312
  // src/createAppSyncResolverHandler.ts
309
313
  var import_graphql_api2 = require("@ttoss/graphql-api");
310
- var createAppSyncResolverHandler = ({
314
+ var createAppSyncResolverHandler = /* @__PURE__ */__name(({
311
315
  ...buildSchemaInput
312
316
  }) => {
313
317
  return async (event, appSyncHandlerContext) => {
@@ -370,7 +374,7 @@ var createAppSyncResolverHandler = ({
370
374
  }
371
375
  return response;
372
376
  };
373
- };
377
+ }, "createAppSyncResolverHandler");
374
378
  // Annotate the CommonJS export names for ESM import in node:
375
379
  0 && (module.exports = {
376
380
  createApiTemplate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/appsync-api",
3
- "version": "0.22.0",
3
+ "version": "0.22.2",
4
4
  "description": "A library for building GraphQL APIs for AWS AppSync.",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -24,11 +24,11 @@
24
24
  ],
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@ttoss/cloudformation": "^0.11.0"
27
+ "@ttoss/cloudformation": "^0.11.1"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "graphql": "^16.6.0",
31
- "@ttoss/graphql-api": "^0.8.7"
31
+ "@ttoss/graphql-api": "^0.8.9"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/aws-lambda": "^8.10.152",
@@ -36,9 +36,9 @@
36
36
  "graphql-shield": "^7.6.5",
37
37
  "jest": "^30.0.4",
38
38
  "tsup": "^8.5.0",
39
- "@ttoss/ids": "^0.3.6",
40
- "@ttoss/config": "^1.35.6",
41
- "@ttoss/graphql-api": "^0.8.7"
39
+ "@ttoss/config": "^1.35.7",
40
+ "@ttoss/graphql-api": "^0.8.9",
41
+ "@ttoss/ids": "^0.3.7"
42
42
  },
43
43
  "keywords": [
44
44
  "api",