@aws-amplify/api 5.4.23 → 5.4.26
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/API.d.ts +8 -0
- package/lib/API.js +8 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/index.d.ts +10 -0
- package/lib-esm/API.d.ts +8 -0
- package/lib-esm/API.js +8 -0
- package/lib-esm/tsconfig.tsbuildinfo +1 -1
- package/lib-esm/types/index.d.ts +10 -0
- package/package.json +20 -13
- package/src/API.ts +8 -0
- package/src/types/index.ts +10 -0
package/lib/types/index.d.ts
CHANGED
|
@@ -5,9 +5,19 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export { graphqlOperation, GraphQLAuthError, GraphQLResult, GRAPHQL_AUTH_MODE, } from '@aws-amplify/api-graphql';
|
|
7
7
|
declare const queryType: unique symbol;
|
|
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 type GraphQLQuery<T> = T & {
|
|
9
14
|
readonly [queryType]: 'query';
|
|
10
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
18
|
+
* See the migration guide:
|
|
19
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
20
|
+
*/
|
|
11
21
|
export type GraphQLSubscription<T> = T & {
|
|
12
22
|
readonly [queryType]: 'subscription';
|
|
13
23
|
};
|
package/lib-esm/API.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ import { InternalAPIClass } from './internals/InternalAPI';
|
|
|
7
7
|
* @deprecated
|
|
8
8
|
* Use RestApi or GraphQLAPI to reduce your application bundle size
|
|
9
9
|
* Export Cloud Logic APIs
|
|
10
|
+
* 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/
|
|
10
13
|
*/
|
|
11
14
|
export declare class APIClass extends InternalAPIClass {
|
|
12
15
|
getModuleName(): string;
|
|
@@ -24,4 +27,9 @@ export declare class APIClass extends InternalAPIClass {
|
|
|
24
27
|
value: GraphQLResult<T>;
|
|
25
28
|
}> : Promise<GraphQLResult<any>> | Observable<object>;
|
|
26
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
32
|
+
* See the migration guide:
|
|
33
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
34
|
+
*/
|
|
27
35
|
export declare const API: APIClass;
|
package/lib-esm/API.js
CHANGED
|
@@ -6,6 +6,9 @@ var logger = new Logger('API');
|
|
|
6
6
|
* @deprecated
|
|
7
7
|
* Use RestApi or GraphQLAPI to reduce your application bundle size
|
|
8
8
|
* Export Cloud Logic APIs
|
|
9
|
+
* 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/
|
|
9
12
|
*/
|
|
10
13
|
var APIClass = /** @class */ (function (_super) {
|
|
11
14
|
__extends(APIClass, _super);
|
|
@@ -21,5 +24,10 @@ var APIClass = /** @class */ (function (_super) {
|
|
|
21
24
|
return APIClass;
|
|
22
25
|
}(InternalAPIClass));
|
|
23
26
|
export { APIClass };
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
29
|
+
* See the migration guide:
|
|
30
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
31
|
+
*/
|
|
24
32
|
export var API = new APIClass(null);
|
|
25
33
|
Amplify.register(API);
|