@aws-amplify/api-graphql 3.4.31 → 3.4.32

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.
@@ -2,6 +2,11 @@ import { Source, DocumentNode, GraphQLError } from 'graphql';
2
2
  export { OperationTypeNode } from 'graphql';
3
3
  import { GRAPHQL_AUTH_MODE } from '@aws-amplify/auth';
4
4
  export { GRAPHQL_AUTH_MODE };
5
+ /**
6
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
7
+ * See the migration guide:
8
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
9
+ */
5
10
  export interface GraphQLOptions {
6
11
  query: string | DocumentNode;
7
12
  variables?: object;
@@ -12,6 +17,11 @@ export interface GraphQLOptions {
12
17
  */
13
18
  userAgentSuffix?: string;
14
19
  }
20
+ /**
21
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
22
+ * See the migration guide:
23
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
24
+ */
15
25
  export interface GraphQLResult<T = object> {
16
26
  data?: T;
17
27
  errors?: GraphQLError[];
@@ -19,6 +29,11 @@ export interface GraphQLResult<T = object> {
19
29
  [key: string]: any;
20
30
  };
21
31
  }
32
+ /**
33
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
34
+ * See the migration guide:
35
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
36
+ */
22
37
  export declare enum GraphQLAuthError {
23
38
  NO_API_KEY = "No api-key configured",
24
39
  NO_CURRENT_USER = "No current user",
@@ -29,5 +44,8 @@ export declare enum GraphQLAuthError {
29
44
  /**
30
45
  * GraphQLSource or string, the type of the parameter for calling graphql.parse
31
46
  * @see: https://graphql.org/graphql-js/language/#parse
47
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
48
+ * See the migration guide:
49
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
32
50
  */
33
51
  export type GraphQLOperation = Source | string;
@@ -1,5 +1,10 @@
1
1
  import { GRAPHQL_AUTH_MODE } from '@aws-amplify/auth';
2
2
  export { GRAPHQL_AUTH_MODE };
3
+ /**
4
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
5
+ * See the migration guide:
6
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
7
+ */
3
8
  export var GraphQLAuthError;
4
9
  (function (GraphQLAuthError) {
5
10
  GraphQLAuthError["NO_API_KEY"] = "No api-key configured";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/api-graphql",
3
- "version": "3.4.31",
3
+ "version": "3.4.32",
4
4
  "description": "Api-graphql category of aws-amplify",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -51,11 +51,11 @@
51
51
  "internals"
52
52
  ],
53
53
  "dependencies": {
54
- "@aws-amplify/api-rest": "3.5.21",
55
- "@aws-amplify/auth": "5.6.23",
56
- "@aws-amplify/cache": "5.1.24",
57
- "@aws-amplify/core": "5.8.18",
58
- "@aws-amplify/pubsub": "5.6.10",
54
+ "@aws-amplify/api-rest": "3.5.22",
55
+ "@aws-amplify/auth": "5.6.24",
56
+ "@aws-amplify/cache": "5.1.25",
57
+ "@aws-amplify/core": "5.8.19",
58
+ "@aws-amplify/pubsub": "5.6.11",
59
59
  "graphql": "15.8.0",
60
60
  "tslib": "^1.8.0",
61
61
  "uuid": "^11.1.1",
@@ -117,5 +117,5 @@
117
117
  "lib-esm"
118
118
  ]
119
119
  },
120
- "gitHead": "68a0df1145f0f1e79d89753b1aafdbf8836a319d"
120
+ "gitHead": "d0b923913b92145813d1470bfbdc9b4dfa915c20"
121
121
  }
package/src/GraphQLAPI.ts CHANGED
@@ -5,6 +5,11 @@ import { GraphQLOptions, GraphQLResult } from './types';
5
5
  import { InternalGraphQLAPIClass } from './internals';
6
6
  import Observable from 'zen-observable-ts';
7
7
 
8
+ /**
9
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
10
+ * See the migration guide:
11
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
12
+ */
8
13
  export const graphqlOperation = (
9
14
  query,
10
15
  variables = {},
@@ -17,6 +22,9 @@ export const graphqlOperation = (
17
22
 
18
23
  /**
19
24
  * Export Cloud Logic APIs
25
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
26
+ * See the migration guide:
27
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
20
28
  */
21
29
  export class GraphQLAPIClass extends InternalGraphQLAPIClass {
22
30
  public getModuleName() {
@@ -38,5 +46,10 @@ export class GraphQLAPIClass extends InternalGraphQLAPIClass {
38
46
  }
39
47
  }
40
48
 
49
+ /**
50
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
51
+ * See the migration guide:
52
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
53
+ */
41
54
  export const GraphQLAPI = new GraphQLAPIClass(null);
42
55
  Amplify.register(GraphQLAPI);
@@ -6,6 +6,11 @@ import { GRAPHQL_AUTH_MODE } from '@aws-amplify/auth';
6
6
  export { GRAPHQL_AUTH_MODE };
7
7
  import { CustomUserAgentDetails } from '@aws-amplify/core';
8
8
 
9
+ /**
10
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
11
+ * See the migration guide:
12
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
13
+ */
9
14
  export interface GraphQLOptions {
10
15
  query: string | DocumentNode;
11
16
  variables?: object;
@@ -17,6 +22,11 @@ export interface GraphQLOptions {
17
22
  userAgentSuffix?: string; // TODO: remove in v6
18
23
  }
19
24
 
25
+ /**
26
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
27
+ * See the migration guide:
28
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
29
+ */
20
30
  export interface GraphQLResult<T = object> {
21
31
  data?: T;
22
32
  errors?: GraphQLError[];
@@ -25,6 +35,11 @@ export interface GraphQLResult<T = object> {
25
35
  };
26
36
  }
27
37
 
38
+ /**
39
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
40
+ * See the migration guide:
41
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
42
+ */
28
43
  export enum GraphQLAuthError {
29
44
  NO_API_KEY = 'No api-key configured',
30
45
  NO_CURRENT_USER = 'No current user',
@@ -36,5 +51,8 @@ export enum GraphQLAuthError {
36
51
  /**
37
52
  * GraphQLSource or string, the type of the parameter for calling graphql.parse
38
53
  * @see: https://graphql.org/graphql-js/language/#parse
54
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
55
+ * See the migration guide:
56
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
39
57
  */
40
58
  export type GraphQLOperation = Source | string;