@aws-amplify/api 6.0.1-console-preview.4ae78ed.0 → 6.0.1-console-preview.8637b15.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/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { GraphQLQuery, GraphQLSubscription } from './types';
2
2
  export { GraphQLAuthError } from '@aws-amplify/api-graphql';
3
- export type { GraphQLResult } from '@aws-amplify/api-graphql';
3
+ export type { GraphQLResult, GraphQLReturnType, } from '@aws-amplify/api-graphql';
4
4
  declare const generateClient: <T extends Record<any, any> = never>() => {
5
5
  cancel: typeof import("@aws-amplify/api-graphql/lib-esm/internals").cancel;
6
6
  graphql: typeof import("@aws-amplify/api-graphql/lib-esm/internals").graphql;
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAKtC,6BAA4B;AAE5B,wDAA4D;AAAnD,yCAAA,gBAAgB,CAAA;AAIzB,IAAM,cAAc,GAAG,SAAG,CAAC,cAAc,CAAC;AAEjC,wCAAc;AAEvB,kDAQ+B;AAP9B,yBAAA,GAAG,CAAA;AACH,yBAAA,GAAG,CAAA;AACH,0BAAA,IAAI,CAAA;AACJ,yBAAA,GAAG,CAAA;AACH,0BAAA,IAAI,CAAA;AACJ,2BAAA,KAAK,CAAA;AACL,mCAAA,aAAa,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAKtC,6BAA4B;AAE5B,wDAA4D;AAAnD,yCAAA,gBAAgB,CAAA;AAOzB,IAAM,cAAc,GAAG,SAAG,CAAC,cAAc,CAAC;AAEjC,wCAAc;AAEvB,kDAQ+B;AAP9B,yBAAA,GAAG,CAAA;AACH,yBAAA,GAAG,CAAA;AACH,0BAAA,IAAI,CAAA;AACJ,yBAAA,GAAG,CAAA;AACH,0BAAA,IAAI,CAAA;AACJ,2BAAA,KAAK,CAAA;AACL,mCAAA,aAAa,CAAA"}
@@ -1,6 +1,6 @@
1
1
  export { GraphQLQuery, GraphQLSubscription } from './types';
2
2
  export { GraphQLAuthError } from '@aws-amplify/api-graphql';
3
- export type { GraphQLResult } from '@aws-amplify/api-graphql';
3
+ export type { GraphQLResult, GraphQLReturnType, } from '@aws-amplify/api-graphql';
4
4
  declare const generateClient: <T extends Record<any, any> = never>() => {
5
5
  cancel: typeof import("@aws-amplify/api-graphql/lib-esm/internals").cancel;
6
6
  graphql: typeof import("@aws-amplify/api-graphql/lib-esm/internals").graphql;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAKtC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAI5D,IAAM,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,OAAO,EACN,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,KAAK,EACL,aAAa,GACb,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAKtC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO5D,IAAM,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,OAAO,EACN,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,KAAK,EACL,aAAa,GACb,MAAM,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/api",
3
- "version": "6.0.1-console-preview.4ae78ed.0+4ae78ed",
3
+ "version": "6.0.1-console-preview.8637b15.0+8637b15",
4
4
  "description": "Api category of aws-amplify",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -55,11 +55,12 @@
55
55
  "lib-esm",
56
56
  "src",
57
57
  "index.*.d.ts",
58
- "internals"
58
+ "internals",
59
+ "server"
59
60
  ],
60
61
  "dependencies": {
61
- "@aws-amplify/api-graphql": "4.0.1-console-preview.4ae78ed.0+4ae78ed",
62
- "@aws-amplify/api-rest": "4.0.1-console-preview.4ae78ed.0+4ae78ed",
62
+ "@aws-amplify/api-graphql": "4.0.1-console-preview.8637b15.0+8637b15",
63
+ "@aws-amplify/api-rest": "4.0.1-console-preview.8637b15.0+8637b15",
63
64
  "tslib": "^2.6.1"
64
65
  },
65
66
  "size-limit": [
@@ -114,5 +115,5 @@
114
115
  "lib-esm"
115
116
  ]
116
117
  },
117
- "gitHead": "4ae78ed23fc03ae718488c98fc48782d2bd6f5f3"
118
+ "gitHead": "8637b15b240e2ea176ac025bd6fc12e25a46118d"
118
119
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "@aws-amplify/api/server",
3
+ "types": "../lib-esm/server.d.ts",
4
+ "main": "../lib/server.js",
5
+ "module": "../lib-esm/server.js",
6
+ "react-native": "../lib-esm/server.js",
7
+ "sideEffects": false
8
+ }
package/src/index.ts CHANGED
@@ -8,7 +8,10 @@ import { API } from './API';
8
8
 
9
9
  export { GraphQLAuthError } from '@aws-amplify/api-graphql';
10
10
 
11
- export type { GraphQLResult } from '@aws-amplify/api-graphql';
11
+ export type {
12
+ GraphQLResult,
13
+ GraphQLReturnType,
14
+ } from '@aws-amplify/api-graphql';
12
15
 
13
16
  const generateClient = API.generateClient;
14
17