@ttoss/graphql-api-server 0.2.3 → 0.2.5

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +17 -0
  2. package/package.json +6 -6
@@ -0,0 +1,17 @@
1
+ import { BuildSchemaInput } from '@ttoss/graphql-api';
2
+ import Koa from 'koa';
3
+ export { default as Router } from '@koa/router';
4
+
5
+ type AuthenticationType = 'AMAZON_COGNITO_USER_POOLS';
6
+ type CreateServerInput = {
7
+ graphiql?: boolean;
8
+ authenticationType?: AuthenticationType;
9
+ userPoolConfig?: {
10
+ userPoolId: string;
11
+ tokenUse?: 'access' | 'id';
12
+ clientId: string;
13
+ };
14
+ } & BuildSchemaInput;
15
+ declare const createServer: ({ graphiql, authenticationType, userPoolConfig, ...buildSchemaInput }: CreateServerInput) => Koa;
16
+
17
+ export { AuthenticationType, CreateServerInput, createServer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/graphql-api-server",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "GraphQL API Server",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "graphql": "^16.6.0",
32
- "@ttoss/graphql-api": "^0.3.3"
32
+ "@ttoss/graphql-api": "^0.3.5"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/koa": "^2.13.6",
@@ -37,10 +37,10 @@
37
37
  "@types/koa__router": "^12.0.0",
38
38
  "@types/koa-bodyparser": "^4.3.10",
39
39
  "graphql": "^16.6.0",
40
- "jest": "^29.5.0",
41
- "tsup": "^6.7.0",
42
- "@ttoss/config": "^1.30.3",
43
- "@ttoss/graphql-api": "^0.3.3"
40
+ "jest": "^29.6.1",
41
+ "tsup": "^7.1.0",
42
+ "@ttoss/config": "^1.30.5",
43
+ "@ttoss/graphql-api": "^0.3.5"
44
44
  },
45
45
  "keywords": [
46
46
  "api",