@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.
@@ -1,6 +1,11 @@
1
1
  import { GraphQLOptions, GraphQLResult } from './types';
2
2
  import { InternalGraphQLAPIClass } from './internals';
3
3
  import Observable from 'zen-observable-ts';
4
+ /**
5
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
6
+ * See the migration guide:
7
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
8
+ */
4
9
  export declare const graphqlOperation: (query: any, variables?: {}, authToken?: string) => {
5
10
  query: any;
6
11
  variables: {};
@@ -8,6 +13,9 @@ export declare const graphqlOperation: (query: any, variables?: {}, authToken?:
8
13
  };
9
14
  /**
10
15
  * Export Cloud Logic APIs
16
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
17
+ * See the migration guide:
18
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
11
19
  */
12
20
  export declare class GraphQLAPIClass extends InternalGraphQLAPIClass {
13
21
  getModuleName(): string;
@@ -22,4 +30,9 @@ export declare class GraphQLAPIClass extends InternalGraphQLAPIClass {
22
30
  [key: string]: string;
23
31
  }): Observable<GraphQLResult<T>> | Promise<GraphQLResult<T>>;
24
32
  }
33
+ /**
34
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
35
+ * See the migration guide:
36
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
37
+ */
25
38
  export declare const GraphQLAPI: GraphQLAPIClass;
package/lib/GraphQLAPI.js CHANGED
@@ -6,6 +6,11 @@ var tslib_1 = require("tslib");
6
6
  // SPDX-License-Identifier: Apache-2.0
7
7
  var core_1 = require("@aws-amplify/core");
8
8
  var internals_1 = require("./internals");
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
  var graphqlOperation = function (query, variables, authToken) {
10
15
  if (variables === void 0) { variables = {}; }
11
16
  return ({
@@ -17,6 +22,9 @@ var graphqlOperation = function (query, variables, authToken) {
17
22
  exports.graphqlOperation = graphqlOperation;
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
  var GraphQLAPIClass = /** @class */ (function (_super) {
22
30
  tslib_1.__extends(GraphQLAPIClass, _super);
@@ -39,5 +47,10 @@ var GraphQLAPIClass = /** @class */ (function (_super) {
39
47
  return GraphQLAPIClass;
40
48
  }(internals_1.InternalGraphQLAPIClass));
41
49
  exports.GraphQLAPIClass = GraphQLAPIClass;
50
+ /**
51
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
52
+ * See the migration guide:
53
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
54
+ */
42
55
  exports.GraphQLAPI = new GraphQLAPIClass(null);
43
56
  core_1.Amplify.register(exports.GraphQLAPI);