@aws-amplify/api 6.0.1-console-preview.047a1dd.0 → 6.0.1-console-preview.4208d73.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/API.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AWSAppSyncRealTimeProvider, GraphQLOptions, GraphQLResult, GraphQLQuery, GraphQLSubscription } from '@aws-amplify/api-graphql';
2
2
  import { graphql as v6graphql } from '@aws-amplify/api-graphql/internals';
3
- import Observable from 'zen-observable-ts';
3
+ import { Observable } from 'rxjs';
4
4
  import { InternalAPIClass } from './internals/InternalAPI';
5
5
  /**
6
6
  * @deprecated
package/lib/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  export { GraphQLQuery, GraphQLSubscription } from './types';
2
- import { API, APIClass } from './API';
3
- export { graphqlOperation, GraphQLAuthError, GraphQLAuthMode, } from '@aws-amplify/api-graphql';
2
+ export { GraphQLAuthError } from '@aws-amplify/api-graphql';
4
3
  export type { GraphQLResult } from '@aws-amplify/api-graphql';
5
4
  declare const generateClient: <T extends Record<any, any> = never>() => {
6
5
  graphql: typeof import("@aws-amplify/api-graphql/lib-esm/internals").graphql;
7
6
  };
8
- export { API, APIClass, generateClient };
7
+ export { generateClient };
package/lib/index.js CHANGED
@@ -3,10 +3,7 @@
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  var API_1 = require("./API");
6
- exports.API = API_1.API;
7
- exports.APIClass = API_1.APIClass;
8
6
  var api_graphql_1 = require("@aws-amplify/api-graphql");
9
- exports.graphqlOperation = api_graphql_1.graphqlOperation;
10
7
  exports.GraphQLAuthError = api_graphql_1.GraphQLAuthError;
11
8
  var generateClient = API_1.API.generateClient;
12
9
  exports.generateClient = generateClient;
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,6BAAsC;AAW7B,cAXA,SAAG,CAWA;AAAE,mBAXA,cAAQ,CAWA;AAVtB,wDAIkC;AAHjC,yCAAA,gBAAgB,CAAA;AAChB,yCAAA,gBAAgB,CAAA;AAMjB,IAAM,cAAc,GAAG,SAAG,CAAC,cAAc,CAAC;AAElB,wCAAc"}
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"}
@@ -1,6 +1,6 @@
1
1
  import { AWSAppSyncRealTimeProvider, GraphQLOperation, GraphQLOptions, GraphQLResult, OperationTypeNode, GraphQLQuery, GraphQLSubscription } from '@aws-amplify/api-graphql';
2
2
  import { CustomUserAgentDetails } from '@aws-amplify/core/internals/utils';
3
- import Observable from 'zen-observable-ts';
3
+ import { Observable } from 'rxjs';
4
4
  /**
5
5
  * @deprecated
6
6
  * Use RestApi or GraphQLAPI to reduce your application bundle size
@@ -3,4 +3,4 @@
3
3
  * generates code that relies on this import path https://github.com/aws-amplify/amplify-cli/issues/3863
4
4
  * This will be removed in future release when CLI and customers moves to recommeneded import styles.
5
5
  */
6
- export { graphqlOperation, GraphQLAuthError, GraphQLResult, GraphQLAuthMode, GraphQLQuery, GraphQLSubscription, } from '@aws-amplify/api-graphql';
6
+ export { graphqlOperation, GraphQLAuthError, GraphQLResult, GraphQLQuery, GraphQLSubscription, } from '@aws-amplify/api-graphql';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC;;;;GAIG;AACH,wDAOkC;AANjC,yCAAA,gBAAgB,CAAA;AAChB,yCAAA,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC;;;;GAIG;AACH,wDAMkC;AALjC,yCAAA,gBAAgB,CAAA;AAChB,yCAAA,gBAAgB,CAAA"}
package/lib-esm/API.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AWSAppSyncRealTimeProvider, GraphQLOptions, GraphQLResult, GraphQLQuery, GraphQLSubscription } from '@aws-amplify/api-graphql';
2
2
  import { graphql as v6graphql } from '@aws-amplify/api-graphql/internals';
3
- import Observable from 'zen-observable-ts';
3
+ import { Observable } from 'rxjs';
4
4
  import { InternalAPIClass } from './internals/InternalAPI';
5
5
  /**
6
6
  * @deprecated
@@ -1,8 +1,7 @@
1
1
  export { GraphQLQuery, GraphQLSubscription } from './types';
2
- import { API, APIClass } from './API';
3
- export { graphqlOperation, GraphQLAuthError, GraphQLAuthMode, } from '@aws-amplify/api-graphql';
2
+ export { GraphQLAuthError } from '@aws-amplify/api-graphql';
4
3
  export type { GraphQLResult } from '@aws-amplify/api-graphql';
5
4
  declare const generateClient: <T extends Record<any, any> = never>() => {
6
5
  graphql: typeof import("@aws-amplify/api-graphql/lib-esm/internals").graphql;
7
6
  };
8
- export { API, APIClass, generateClient };
7
+ export { generateClient };
package/lib-esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- import { API, APIClass } from './API';
4
- export { graphqlOperation, GraphQLAuthError, } from '@aws-amplify/api-graphql';
3
+ import { API } from './API';
4
+ export { GraphQLAuthError } from '@aws-amplify/api-graphql';
5
5
  var generateClient = API.generateClient;
6
- export { API, APIClass, generateClient };
6
+ export { generateClient };
7
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAKtC,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAEhB,MAAM,0BAA0B,CAAC;AAIlC,IAAM,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;AAE1C,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,cAAc,EAAE,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;AAI5D,IAAM,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { AWSAppSyncRealTimeProvider, GraphQLOperation, GraphQLOptions, GraphQLResult, OperationTypeNode, GraphQLQuery, GraphQLSubscription } from '@aws-amplify/api-graphql';
2
2
  import { CustomUserAgentDetails } from '@aws-amplify/core/internals/utils';
3
- import Observable from 'zen-observable-ts';
3
+ import { Observable } from 'rxjs';
4
4
  /**
5
5
  * @deprecated
6
6
  * Use RestApi or GraphQLAPI to reduce your application bundle size
@@ -3,4 +3,4 @@
3
3
  * generates code that relies on this import path https://github.com/aws-amplify/amplify-cli/issues/3863
4
4
  * This will be removed in future release when CLI and customers moves to recommeneded import styles.
5
5
  */
6
- export { graphqlOperation, GraphQLAuthError, GraphQLResult, GraphQLAuthMode, GraphQLQuery, GraphQLSubscription, } from '@aws-amplify/api-graphql';
6
+ export { graphqlOperation, GraphQLAuthError, GraphQLResult, GraphQLQuery, GraphQLSubscription, } from '@aws-amplify/api-graphql';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC;;;;GAIG;AACH,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAKhB,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC;;;;GAIG;AACH,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAIhB,MAAM,0BAA0B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/api",
3
- "version": "6.0.1-console-preview.047a1dd.0+047a1dd",
3
+ "version": "6.0.1-console-preview.4208d73.0+4208d73",
4
4
  "description": "Api category of aws-amplify",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -48,7 +48,6 @@
48
48
  },
49
49
  "homepage": "https://aws-amplify.github.io/",
50
50
  "devDependencies": {
51
- "@types/zen-observable": "^0.8.0",
52
51
  "typescript": "5.1.6"
53
52
  },
54
53
  "files": [
@@ -59,8 +58,8 @@
59
58
  "internals"
60
59
  ],
61
60
  "dependencies": {
62
- "@aws-amplify/api-graphql": "4.0.1-console-preview.047a1dd.0+047a1dd",
63
- "@aws-amplify/api-rest": "4.0.1-console-preview.047a1dd.0+047a1dd",
61
+ "@aws-amplify/api-graphql": "4.0.1-console-preview.4208d73.0+4208d73",
62
+ "@aws-amplify/api-rest": "4.0.1-console-preview.4208d73.0+4208d73",
64
63
  "tslib": "^2.6.1"
65
64
  },
66
65
  "size-limit": [
@@ -115,5 +114,5 @@
115
114
  "lib-esm"
116
115
  ]
117
116
  },
118
- "gitHead": "047a1dd83d54c8f3ee74e0766d96c6a3b9f97f90"
117
+ "gitHead": "4208d73da3e1b5e256400acbaa1c6447e329e378"
119
118
  }
package/src/API.ts CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  GraphQLSubscription,
9
9
  } from '@aws-amplify/api-graphql';
10
10
  import { graphql as v6graphql } from '@aws-amplify/api-graphql/internals';
11
- import Observable from 'zen-observable-ts';
11
+ import { Observable } from 'rxjs';
12
12
  import { InternalAPIClass } from './internals/InternalAPI';
13
13
 
14
14
  /**
package/src/index.ts CHANGED
@@ -4,15 +4,12 @@
4
4
  // TODO(v6): revisit exports
5
5
 
6
6
  export { GraphQLQuery, GraphQLSubscription } from './types';
7
- import { API, APIClass } from './API';
8
- export {
9
- graphqlOperation,
10
- GraphQLAuthError,
11
- GraphQLAuthMode,
12
- } from '@aws-amplify/api-graphql';
7
+ import { API } from './API';
8
+
9
+ export { GraphQLAuthError } from '@aws-amplify/api-graphql';
13
10
 
14
11
  export type { GraphQLResult } from '@aws-amplify/api-graphql';
15
12
 
16
13
  const generateClient = API.generateClient;
17
14
 
18
- export { API, APIClass, generateClient };
15
+ export { generateClient };
@@ -18,7 +18,7 @@ import {
18
18
  ConsoleLogger as Logger,
19
19
  CustomUserAgentDetails,
20
20
  } from '@aws-amplify/core/internals/utils';
21
- import Observable from 'zen-observable-ts';
21
+ import { Observable } from 'rxjs';
22
22
 
23
23
  const logger = new Logger('API');
24
24
  /**
@@ -10,7 +10,6 @@ export {
10
10
  graphqlOperation,
11
11
  GraphQLAuthError,
12
12
  GraphQLResult,
13
- GraphQLAuthMode,
14
13
  GraphQLQuery,
15
14
  GraphQLSubscription,
16
15
  } from '@aws-amplify/api-graphql';