@aws-amplify/api 6.0.1-unstable.cfbde4c.0 → 6.0.1
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 → dist/cjs}/API.js +4 -2
- package/dist/cjs/API.js.map +1 -0
- package/dist/cjs/index.js +20 -0
- package/dist/cjs/index.js.map +1 -0
- package/{lib → dist/cjs}/internals/InternalAPI.js +4 -2
- package/dist/cjs/internals/InternalAPI.js.map +1 -0
- package/{lib → dist/cjs}/internals/generateServerClient.js +4 -2
- package/dist/cjs/internals/generateServerClient.js.map +1 -0
- package/dist/cjs/internals/index.js +12 -0
- package/dist/cjs/internals/index.js.map +1 -0
- package/dist/cjs/server.js +15 -0
- package/dist/cjs/server.js.map +1 -0
- package/{lib → dist/cjs}/types/index.js +6 -4
- package/dist/cjs/types/index.js.map +1 -0
- package/{lib-esm/API.js → dist/esm/API.mjs} +11 -8
- package/dist/esm/API.mjs.map +1 -0
- package/{lib-esm → dist/esm}/index.d.ts +2 -2
- package/dist/esm/index.mjs +4 -0
- package/dist/esm/index.mjs.map +1 -0
- package/{lib-esm → dist/esm}/internals/InternalAPI.d.ts +1 -1
- package/{lib-esm/internals/InternalAPI.js → dist/esm/internals/InternalAPI.mjs} +8 -5
- package/dist/esm/internals/InternalAPI.mjs.map +1 -0
- package/{lib-esm/internals/generateServerClient.js → dist/esm/internals/generateServerClient.mjs} +7 -4
- package/dist/esm/internals/generateServerClient.mjs.map +1 -0
- package/dist/esm/internals/index.mjs +3 -0
- package/dist/esm/internals/index.mjs.map +1 -0
- package/dist/esm/server.mjs +2 -0
- package/dist/esm/server.mjs.map +1 -0
- package/dist/esm/types/index.mjs +2 -0
- package/dist/esm/types/index.mjs.map +1 -0
- package/internals/package.json +4 -4
- package/package.json +62 -26
- package/server/package.json +3 -4
- package/src/index.ts +2 -1
- package/lib/.tsbuildinfo +0 -3
- package/lib/API.d.ts +0 -5
- package/lib/API.js.map +0 -1
- package/lib/index.d.ts +0 -5
- package/lib/index.js +0 -17
- package/lib/index.js.map +0 -1
- package/lib/internals/InternalAPI.d.ts +0 -42
- package/lib/internals/InternalAPI.js.map +0 -1
- package/lib/internals/generateServerClient.d.ts +0 -11
- package/lib/internals/generateServerClient.js.map +0 -1
- package/lib/internals/index.d.ts +0 -2
- package/lib/internals/index.js +0 -10
- package/lib/internals/index.js.map +0 -1
- package/lib/server.d.ts +0 -1
- package/lib/server.js +0 -13
- package/lib/server.js.map +0 -1
- package/lib/types/index.d.ts +0 -6
- package/lib/types/index.js.map +0 -1
- package/lib-esm/.tsbuildinfo +0 -3
- package/lib-esm/API.js.map +0 -1
- package/lib-esm/index.js +0 -6
- package/lib-esm/index.js.map +0 -1
- package/lib-esm/internals/InternalAPI.js.map +0 -1
- package/lib-esm/internals/generateServerClient.js.map +0 -1
- package/lib-esm/internals/index.js +0 -5
- package/lib-esm/internals/index.js.map +0 -1
- package/lib-esm/server.js +0 -4
- package/lib-esm/server.js.map +0 -1
- package/lib-esm/types/index.js +0 -9
- package/lib-esm/types/index.js.map +0 -1
- /package/{lib-esm → dist/esm}/API.d.ts +0 -0
- /package/{lib-esm → dist/esm}/internals/generateServerClient.d.ts +0 -0
- /package/{lib-esm → dist/esm}/internals/index.d.ts +0 -0
- /package/{lib-esm → dist/esm}/server.d.ts +0 -0
- /package/{lib-esm → dist/esm}/types/index.d.ts +0 -0
package/{lib → dist/cjs}/API.js
RENAMED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.generateClient = void 0;
|
|
3
5
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
6
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
7
|
const api_graphql_1 = require("@aws-amplify/api-graphql");
|
|
@@ -17,4 +19,4 @@ function generateClient() {
|
|
|
17
19
|
};
|
|
18
20
|
}
|
|
19
21
|
exports.generateClient = generateClient;
|
|
20
|
-
//# sourceMappingURL=API.js.map
|
|
22
|
+
//# sourceMappingURL=API.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"API.js","sources":["../../src/API.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.generateClient = void 0;\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst api_graphql_1 = require(\"@aws-amplify/api-graphql\");\nconst internals_1 = require(\"@aws-amplify/api-graphql/internals\");\nconst core_1 = require(\"@aws-amplify/core\");\n/**\n * Generates an API client that can work with models or raw GraphQL\n */\nfunction generateClient() {\n return {\n [api_graphql_1.__amplify]: core_1.Amplify,\n graphql: internals_1.graphql,\n cancel: internals_1.cancel,\n isCancelError: internals_1.isCancelError,\n };\n}\nexports.generateClient = generateClient;\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,cAAc,GAAG,KAAK,CAAC,CAAC;AAChC;AACA;AACA,MAAM,aAAa,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAC1D,MAAM,WAAW,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAAC;AAClE,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C;AACA;AACA;AACA,SAAS,cAAc,GAAG;AAC1B,IAAI,OAAO;AACX,QAAQ,CAAC,aAAa,CAAC,SAAS,GAAG,MAAM,CAAC,OAAO;AACjD,QAAQ,OAAO,EAAE,WAAW,CAAC,OAAO;AACpC,QAAQ,MAAM,EAAE,WAAW,CAAC,MAAM;AAClC,QAAQ,aAAa,EAAE,WAAW,CAAC,aAAa;AAChD,KAAK,CAAC;AACN,CAAC;AACD,OAAO,CAAC,cAAc,GAAG,cAAc;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.isCancelError = exports.patch = exports.head = exports.del = exports.post = exports.put = exports.get = exports.ConnectionState = exports.GraphQLAuthError = exports.generateClient = void 0;
|
|
7
|
+
var API_1 = require("./API");
|
|
8
|
+
Object.defineProperty(exports, "generateClient", { enumerable: true, get: function () { return API_1.generateClient; } });
|
|
9
|
+
var api_graphql_1 = require("@aws-amplify/api-graphql");
|
|
10
|
+
Object.defineProperty(exports, "GraphQLAuthError", { enumerable: true, get: function () { return api_graphql_1.GraphQLAuthError; } });
|
|
11
|
+
Object.defineProperty(exports, "ConnectionState", { enumerable: true, get: function () { return api_graphql_1.ConnectionState; } });
|
|
12
|
+
var api_rest_1 = require("@aws-amplify/api-rest");
|
|
13
|
+
Object.defineProperty(exports, "get", { enumerable: true, get: function () { return api_rest_1.get; } });
|
|
14
|
+
Object.defineProperty(exports, "put", { enumerable: true, get: function () { return api_rest_1.put; } });
|
|
15
|
+
Object.defineProperty(exports, "post", { enumerable: true, get: function () { return api_rest_1.post; } });
|
|
16
|
+
Object.defineProperty(exports, "del", { enumerable: true, get: function () { return api_rest_1.del; } });
|
|
17
|
+
Object.defineProperty(exports, "head", { enumerable: true, get: function () { return api_rest_1.head; } });
|
|
18
|
+
Object.defineProperty(exports, "patch", { enumerable: true, get: function () { return api_rest_1.patch; } });
|
|
19
|
+
Object.defineProperty(exports, "isCancelError", { enumerable: true, get: function () { return api_rest_1.isCancelError; } });
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isCancelError = exports.patch = exports.head = exports.del = exports.post = exports.put = exports.get = exports.ConnectionState = exports.GraphQLAuthError = exports.generateClient = void 0;\nvar API_1 = require(\"./API\");\nObject.defineProperty(exports, \"generateClient\", { enumerable: true, get: function () { return API_1.generateClient; } });\nvar api_graphql_1 = require(\"@aws-amplify/api-graphql\");\nObject.defineProperty(exports, \"GraphQLAuthError\", { enumerable: true, get: function () { return api_graphql_1.GraphQLAuthError; } });\nObject.defineProperty(exports, \"ConnectionState\", { enumerable: true, get: function () { return api_graphql_1.ConnectionState; } });\nvar api_rest_1 = require(\"@aws-amplify/api-rest\");\nObject.defineProperty(exports, \"get\", { enumerable: true, get: function () { return api_rest_1.get; } });\nObject.defineProperty(exports, \"put\", { enumerable: true, get: function () { return api_rest_1.put; } });\nObject.defineProperty(exports, \"post\", { enumerable: true, get: function () { return api_rest_1.post; } });\nObject.defineProperty(exports, \"del\", { enumerable: true, get: function () { return api_rest_1.del; } });\nObject.defineProperty(exports, \"head\", { enumerable: true, get: function () { return api_rest_1.head; } });\nObject.defineProperty(exports, \"patch\", { enumerable: true, get: function () { return api_rest_1.patch; } });\nObject.defineProperty(exports, \"isCancelError\", { enumerable: true, get: function () { return api_rest_1.isCancelError; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,cAAc,GAAG,KAAK,CAAC,CAAC;AACrM,IAAI,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC7B,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,KAAK,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC,CAAC;AAC1H,IAAI,aAAa,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;AACxD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,kBAAkB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,aAAa,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;AACtI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,aAAa,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC;AACpI,IAAI,UAAU,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAClD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AACzG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AACzG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;AAC3G,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AACzG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;AAC3G,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;AAC7G,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;;"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.InternalAPI = exports.InternalAPIClass = void 0;
|
|
3
5
|
const internals_1 = require("@aws-amplify/api-graphql/internals");
|
|
4
6
|
const core_1 = require("@aws-amplify/core");
|
|
5
7
|
const utils_1 = require("@aws-amplify/core/internals/utils");
|
|
@@ -49,4 +51,4 @@ class InternalAPIClass {
|
|
|
49
51
|
}
|
|
50
52
|
exports.InternalAPIClass = InternalAPIClass;
|
|
51
53
|
exports.InternalAPI = new InternalAPIClass(null);
|
|
52
|
-
//# sourceMappingURL=InternalAPI.js.map
|
|
54
|
+
//# sourceMappingURL=InternalAPI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalAPI.js","sources":["../../../src/internals/InternalAPI.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InternalAPI = exports.InternalAPIClass = void 0;\nconst internals_1 = require(\"@aws-amplify/api-graphql/internals\");\nconst core_1 = require(\"@aws-amplify/core\");\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\n/**\n * NOTE!\n *\n * This is used only by DataStore.\n *\n * This can probably be pruned and/or removed. Just leaving it as much of the same\n * state as possible for V6 to reduce number of potentially impactful changes to DataStore.\n */\nconst logger = new core_1.ConsoleLogger('API');\n/**\n * @deprecated\n * Use RestApi or GraphQLAPI to reduce your application bundle size\n * Export Cloud Logic APIs\n */\nclass InternalAPIClass {\n /**\n * Initialize API with AWS configuration\n * @param {Object} options - Configuration object for API\n */\n constructor(options) {\n this.Cache = core_1.Cache;\n this._options = options;\n this._graphqlApi = new internals_1.InternalGraphQLAPIClass(options);\n logger.debug('API Options', this._options);\n }\n getModuleName() {\n return 'InternalAPI';\n }\n /**\n * to get the operation type\n * @param operation\n */\n getGraphqlOperationType(operation) {\n return this._graphqlApi.getGraphqlOperationType(operation);\n }\n graphql(options, additionalHeaders, customUserAgentDetails) {\n const apiUserAgentDetails = {\n category: utils_1.Category.API,\n action: utils_1.ApiAction.GraphQl,\n ...customUserAgentDetails,\n };\n return this._graphqlApi.graphql(core_1.Amplify, options, additionalHeaders, apiUserAgentDetails);\n }\n}\nexports.InternalAPIClass = InternalAPIClass;\nexports.InternalAPI = new InternalAPIClass(null);\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,WAAW,GAAG,OAAO,CAAC,gBAAgB,GAAG,KAAK,CAAC,CAAC;AACxD,MAAM,WAAW,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAAC;AAClE,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC/C;AACA;AACA;AACA;AACA;AACA,MAAM,gBAAgB,CAAC;AACvB;AACA;AACA;AACA;AACA,IAAI,WAAW,CAAC,OAAO,EAAE;AACzB,QAAQ,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;AAClC,QAAQ,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;AAChC,QAAQ,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;AAC5E,QAAQ,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,aAAa,GAAG;AACpB,QAAQ,OAAO,aAAa,CAAC;AAC7B,KAAK;AACL;AACA;AACA;AACA;AACA,IAAI,uBAAuB,CAAC,SAAS,EAAE;AACvC,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AACnE,KAAK;AACL,IAAI,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE;AAChE,QAAQ,MAAM,mBAAmB,GAAG;AACpC,YAAY,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;AAC1C,YAAY,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,OAAO;AAC7C,YAAY,GAAG,sBAAsB;AACrC,SAAS,CAAC;AACV,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,CAAC,CAAC;AACzG,KAAK;AACL,CAAC;AACD,OAAO,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;AAC5C,OAAO,CAAC,WAAW,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC;;"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.generateServerClient = void 0;
|
|
5
7
|
const api_graphql_1 = require("@aws-amplify/api-graphql");
|
|
6
8
|
const internals_1 = require("@aws-amplify/api-graphql/internals");
|
|
7
9
|
/**
|
|
@@ -24,4 +26,4 @@ function generateServerClient(params) {
|
|
|
24
26
|
return client;
|
|
25
27
|
}
|
|
26
28
|
exports.generateServerClient = generateServerClient;
|
|
27
|
-
//# sourceMappingURL=generateServerClient.js.map
|
|
29
|
+
//# sourceMappingURL=generateServerClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateServerClient.js","sources":["../../../src/internals/generateServerClient.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.generateServerClient = void 0;\nconst api_graphql_1 = require(\"@aws-amplify/api-graphql\");\nconst internals_1 = require(\"@aws-amplify/api-graphql/internals\");\n/**\n * @private\n *\n * Creates a client that can be used to make GraphQL requests, using a provided `AmplifyClassV6`\n * compatible context object for config and auth fetching.\n *\n * @param params\n * @returns\n */\nfunction generateServerClient(params) {\n const client = {\n [api_graphql_1.__amplify]: params.amplify,\n graphql: internals_1.graphql,\n cancel: internals_1.cancel,\n isCancelError: internals_1.isCancelError,\n models: {},\n };\n return client;\n}\nexports.generateServerClient = generateServerClient;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,oBAAoB,GAAG,KAAK,CAAC,CAAC;AACtC,MAAM,aAAa,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAC1D,MAAM,WAAW,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAAC;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,oBAAoB,CAAC,MAAM,EAAE;AACtC,IAAI,MAAM,MAAM,GAAG;AACnB,QAAQ,CAAC,aAAa,CAAC,SAAS,GAAG,MAAM,CAAC,OAAO;AACjD,QAAQ,OAAO,EAAE,WAAW,CAAC,OAAO;AACpC,QAAQ,MAAM,EAAE,WAAW,CAAC,MAAM;AAClC,QAAQ,aAAa,EAAE,WAAW,CAAC,aAAa;AAChD,QAAQ,MAAM,EAAE,EAAE;AAClB,KAAK,CAAC;AACN,IAAI,OAAO,MAAM,CAAC;AAClB,CAAC;AACD,OAAO,CAAC,oBAAoB,GAAG,oBAAoB;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.generateServerClient = exports.InternalAPIClass = exports.InternalAPI = void 0;
|
|
5
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
6
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
7
|
+
var InternalAPI_1 = require("./InternalAPI");
|
|
8
|
+
Object.defineProperty(exports, "InternalAPI", { enumerable: true, get: function () { return InternalAPI_1.InternalAPI; } });
|
|
9
|
+
Object.defineProperty(exports, "InternalAPIClass", { enumerable: true, get: function () { return InternalAPI_1.InternalAPIClass; } });
|
|
10
|
+
var generateServerClient_1 = require("./generateServerClient");
|
|
11
|
+
Object.defineProperty(exports, "generateServerClient", { enumerable: true, get: function () { return generateServerClient_1.generateServerClient; } });
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/internals/index.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.generateServerClient = exports.InternalAPIClass = exports.InternalAPI = void 0;\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nvar InternalAPI_1 = require(\"./InternalAPI\");\nObject.defineProperty(exports, \"InternalAPI\", { enumerable: true, get: function () { return InternalAPI_1.InternalAPI; } });\nObject.defineProperty(exports, \"InternalAPIClass\", { enumerable: true, get: function () { return InternalAPI_1.InternalAPIClass; } });\nvar generateServerClient_1 = require(\"./generateServerClient\");\nObject.defineProperty(exports, \"generateServerClient\", { enumerable: true, get: function () { return generateServerClient_1.generateServerClient; } });\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,WAAW,GAAG,KAAK,CAAC,CAAC;AACvF;AACA;AACA,IAAI,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAC7C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;AAC5H,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,kBAAkB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,aAAa,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;AACtI,IAAI,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAC/D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,sBAAsB,CAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.isCancelError = exports.patch = exports.head = exports.del = exports.post = exports.put = exports.get = void 0;
|
|
7
|
+
var server_1 = require("@aws-amplify/api-rest/server");
|
|
8
|
+
Object.defineProperty(exports, "get", { enumerable: true, get: function () { return server_1.get; } });
|
|
9
|
+
Object.defineProperty(exports, "put", { enumerable: true, get: function () { return server_1.put; } });
|
|
10
|
+
Object.defineProperty(exports, "post", { enumerable: true, get: function () { return server_1.post; } });
|
|
11
|
+
Object.defineProperty(exports, "del", { enumerable: true, get: function () { return server_1.del; } });
|
|
12
|
+
Object.defineProperty(exports, "head", { enumerable: true, get: function () { return server_1.head; } });
|
|
13
|
+
Object.defineProperty(exports, "patch", { enumerable: true, get: function () { return server_1.patch; } });
|
|
14
|
+
Object.defineProperty(exports, "isCancelError", { enumerable: true, get: function () { return server_1.isCancelError; } });
|
|
15
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sources":["../../src/server.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isCancelError = exports.patch = exports.head = exports.del = exports.post = exports.put = exports.get = void 0;\nvar server_1 = require(\"@aws-amplify/api-rest/server\");\nObject.defineProperty(exports, \"get\", { enumerable: true, get: function () { return server_1.get; } });\nObject.defineProperty(exports, \"put\", { enumerable: true, get: function () { return server_1.put; } });\nObject.defineProperty(exports, \"post\", { enumerable: true, get: function () { return server_1.post; } });\nObject.defineProperty(exports, \"del\", { enumerable: true, get: function () { return server_1.del; } });\nObject.defineProperty(exports, \"head\", { enumerable: true, get: function () { return server_1.head; } });\nObject.defineProperty(exports, \"patch\", { enumerable: true, get: function () { return server_1.patch; } });\nObject.defineProperty(exports, \"isCancelError\", { enumerable: true, get: function () { return server_1.isCancelError; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC;AACvH,IAAI,QAAQ,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AACvD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,QAAQ,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AACvG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,QAAQ,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AACvG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;AACzG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,QAAQ,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AACvG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;AACzG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;AAC3G,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,QAAQ,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;;"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
2
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.GraphQLAuthError = exports.graphqlOperation = void 0;
|
|
5
7
|
/**
|
|
6
8
|
* This exports from the types directory is a temporary workaround, since Amplify CLI currently
|
|
7
9
|
* generates code that relies on this import path https://github.com/aws-amplify/amplify-cli/issues/3863
|
|
8
10
|
* This will be removed in future release when CLI and customers moves to recommeneded import styles.
|
|
9
11
|
*/
|
|
10
12
|
var api_graphql_1 = require("@aws-amplify/api-graphql");
|
|
11
|
-
exports
|
|
12
|
-
exports
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
13
|
+
Object.defineProperty(exports, "graphqlOperation", { enumerable: true, get: function () { return api_graphql_1.graphqlOperation; } });
|
|
14
|
+
Object.defineProperty(exports, "GraphQLAuthError", { enumerable: true, get: function () { return api_graphql_1.GraphQLAuthError; } });
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/types/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.GraphQLAuthError = exports.graphqlOperation = void 0;\n/**\n * This exports from the types directory is a temporary workaround, since Amplify CLI currently\n * generates code that relies on this import path https://github.com/aws-amplify/amplify-cli/issues/3863\n * This will be removed in future release when CLI and customers moves to recommeneded import styles.\n */\nvar api_graphql_1 = require(\"@aws-amplify/api-graphql\");\nObject.defineProperty(exports, \"graphqlOperation\", { enumerable: true, get: function () { return api_graphql_1.graphqlOperation; } });\nObject.defineProperty(exports, \"GraphQLAuthError\", { enumerable: true, get: function () { return api_graphql_1.GraphQLAuthError; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,GAAG,KAAK,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA,IAAI,aAAa,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;AACxD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,kBAAkB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,aAAa,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;AACtI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,kBAAkB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,aAAa,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC;;"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
1
|
import { __amplify } from '@aws-amplify/api-graphql';
|
|
4
|
-
import { graphql
|
|
2
|
+
import { graphql, cancel, isCancelError } from '@aws-amplify/api-graphql/internals';
|
|
5
3
|
import { Amplify } from '@aws-amplify/core';
|
|
4
|
+
|
|
5
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
6
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
6
7
|
/**
|
|
7
8
|
* Generates an API client that can work with models or raw GraphQL
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
|
+
function generateClient() {
|
|
10
11
|
return {
|
|
11
12
|
[__amplify]: Amplify,
|
|
12
|
-
graphql:
|
|
13
|
-
cancel:
|
|
14
|
-
isCancelError:
|
|
13
|
+
graphql: graphql,
|
|
14
|
+
cancel: cancel,
|
|
15
|
+
isCancelError: isCancelError,
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
+
|
|
19
|
+
export { generateClient };
|
|
20
|
+
//# sourceMappingURL=API.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"API.mjs","sources":["../../src/API.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { __amplify } from '@aws-amplify/api-graphql';\nimport { graphql as v6graphql, cancel as v6cancel, isCancelError as v6isCancelError, } from '@aws-amplify/api-graphql/internals';\nimport { Amplify } from '@aws-amplify/core';\n/**\n * Generates an API client that can work with models or raw GraphQL\n */\nexport function generateClient() {\n return {\n [__amplify]: Amplify,\n graphql: v6graphql,\n cancel: v6cancel,\n isCancelError: v6isCancelError,\n };\n}\n"],"names":["v6graphql","v6cancel","v6isCancelError"],"mappings":";;;;AAAA;AACA;AAIA;AACA;AACA;AACO,SAAS,cAAc,GAAG;AACjC,IAAI,OAAO;AACX,QAAQ,CAAC,SAAS,GAAG,OAAO;AAC5B,QAAQ,OAAO,EAAEA,OAAS;AAC1B,QAAQ,MAAM,EAAEC,MAAQ;AACxB,QAAQ,aAAa,EAAEC,aAAe;AACtC,KAAK,CAAC;AACN;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { GraphQLQuery, GraphQLSubscription } from './types';
|
|
2
2
|
export { generateClient } from './API';
|
|
3
|
-
export { GraphQLAuthError } from '@aws-amplify/api-graphql';
|
|
4
|
-
export type { GraphQLResult, GraphQLReturnType, } from '@aws-amplify/api-graphql';
|
|
3
|
+
export { GraphQLAuthError, ConnectionState } from '@aws-amplify/api-graphql';
|
|
4
|
+
export type { GraphQLResult, GraphQLReturnType, CONNECTION_STATE_CHANGE, } from '@aws-amplify/api-graphql';
|
|
5
5
|
export { get, put, post, del, head, patch, isCancelError, } from '@aws-amplify/api-rest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -13,7 +13,7 @@ export declare class InternalAPIClass {
|
|
|
13
13
|
*/
|
|
14
14
|
private _options;
|
|
15
15
|
private _graphqlApi;
|
|
16
|
-
Cache: import("@aws-amplify/core/
|
|
16
|
+
Cache: import("@aws-amplify/core/dist/esm/Cache/StorageCache").StorageCache;
|
|
17
17
|
/**
|
|
18
18
|
* Initialize API with AWS configuration
|
|
19
19
|
* @param {Object} options - Configuration object for API
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { InternalGraphQLAPIClass } from '@aws-amplify/api-graphql/internals';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ConsoleLogger, Cache, Amplify } from '@aws-amplify/core';
|
|
3
|
+
import { Category, ApiAction } from '@aws-amplify/core/internals/utils';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* NOTE!
|
|
6
7
|
*
|
|
@@ -15,7 +16,7 @@ const logger = new ConsoleLogger('API');
|
|
|
15
16
|
* Use RestApi or GraphQLAPI to reduce your application bundle size
|
|
16
17
|
* Export Cloud Logic APIs
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
+
class InternalAPIClass {
|
|
19
20
|
/**
|
|
20
21
|
* Initialize API with AWS configuration
|
|
21
22
|
* @param {Object} options - Configuration object for API
|
|
@@ -45,5 +46,7 @@ export class InternalAPIClass {
|
|
|
45
46
|
return this._graphqlApi.graphql(Amplify, options, additionalHeaders, apiUserAgentDetails);
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
const InternalAPI = new InternalAPIClass(null);
|
|
50
|
+
|
|
51
|
+
export { InternalAPI, InternalAPIClass };
|
|
52
|
+
//# sourceMappingURL=InternalAPI.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalAPI.mjs","sources":["../../../src/internals/InternalAPI.ts"],"sourcesContent":["import { InternalGraphQLAPIClass } from '@aws-amplify/api-graphql/internals';\nimport { Amplify, Cache, ConsoleLogger } from '@aws-amplify/core';\nimport { ApiAction, Category, } from '@aws-amplify/core/internals/utils';\n/**\n * NOTE!\n *\n * This is used only by DataStore.\n *\n * This can probably be pruned and/or removed. Just leaving it as much of the same\n * state as possible for V6 to reduce number of potentially impactful changes to DataStore.\n */\nconst logger = new ConsoleLogger('API');\n/**\n * @deprecated\n * Use RestApi or GraphQLAPI to reduce your application bundle size\n * Export Cloud Logic APIs\n */\nexport class InternalAPIClass {\n /**\n * Initialize API with AWS configuration\n * @param {Object} options - Configuration object for API\n */\n constructor(options) {\n this.Cache = Cache;\n this._options = options;\n this._graphqlApi = new InternalGraphQLAPIClass(options);\n logger.debug('API Options', this._options);\n }\n getModuleName() {\n return 'InternalAPI';\n }\n /**\n * to get the operation type\n * @param operation\n */\n getGraphqlOperationType(operation) {\n return this._graphqlApi.getGraphqlOperationType(operation);\n }\n graphql(options, additionalHeaders, customUserAgentDetails) {\n const apiUserAgentDetails = {\n category: Category.API,\n action: ApiAction.GraphQl,\n ...customUserAgentDetails,\n };\n return this._graphqlApi.graphql(Amplify, options, additionalHeaders, apiUserAgentDetails);\n }\n}\nexport const InternalAPI = new InternalAPIClass(null);\n"],"names":[],"mappings":";;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;AACxC;AACA;AACA;AACA;AACA;AACO,MAAM,gBAAgB,CAAC;AAC9B;AACA;AACA;AACA;AACA,IAAI,WAAW,CAAC,OAAO,EAAE;AACzB,QAAQ,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AAC3B,QAAQ,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;AAChC,QAAQ,IAAI,CAAC,WAAW,GAAG,IAAI,uBAAuB,CAAC,OAAO,CAAC,CAAC;AAChE,QAAQ,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;AACnD,KAAK;AACL,IAAI,aAAa,GAAG;AACpB,QAAQ,OAAO,aAAa,CAAC;AAC7B,KAAK;AACL;AACA;AACA;AACA;AACA,IAAI,uBAAuB,CAAC,SAAS,EAAE;AACvC,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AACnE,KAAK;AACL,IAAI,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE;AAChE,QAAQ,MAAM,mBAAmB,GAAG;AACpC,YAAY,QAAQ,EAAE,QAAQ,CAAC,GAAG;AAClC,YAAY,MAAM,EAAE,SAAS,CAAC,OAAO;AACrC,YAAY,GAAG,sBAAsB;AACrC,SAAS,CAAC;AACV,QAAQ,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,CAAC,CAAC;AAClG,KAAK;AACL,CAAC;AACW,MAAC,WAAW,GAAG,IAAI,gBAAgB,CAAC,IAAI;;;;"}
|
package/{lib-esm/internals/generateServerClient.js → dist/esm/internals/generateServerClient.mjs}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { __amplify } from '@aws-amplify/api-graphql';
|
|
2
|
+
import { graphql, cancel, isCancelError } from '@aws-amplify/api-graphql/internals';
|
|
3
|
+
|
|
1
4
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
5
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import { __amplify, } from '@aws-amplify/api-graphql';
|
|
4
|
-
import { graphql, cancel, isCancelError, } from '@aws-amplify/api-graphql/internals';
|
|
5
6
|
/**
|
|
6
7
|
* @private
|
|
7
8
|
*
|
|
@@ -11,7 +12,7 @@ import { graphql, cancel, isCancelError, } from '@aws-amplify/api-graphql/intern
|
|
|
11
12
|
* @param params
|
|
12
13
|
* @returns
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
function generateServerClient(params) {
|
|
15
16
|
const client = {
|
|
16
17
|
[__amplify]: params.amplify,
|
|
17
18
|
graphql,
|
|
@@ -21,4 +22,6 @@ export function generateServerClient(params) {
|
|
|
21
22
|
};
|
|
22
23
|
return client;
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
+
|
|
26
|
+
export { generateServerClient };
|
|
27
|
+
//# sourceMappingURL=generateServerClient.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateServerClient.mjs","sources":["../../../src/internals/generateServerClient.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { __amplify, } from '@aws-amplify/api-graphql';\nimport { graphql, cancel, isCancelError, } from '@aws-amplify/api-graphql/internals';\n/**\n * @private\n *\n * Creates a client that can be used to make GraphQL requests, using a provided `AmplifyClassV6`\n * compatible context object for config and auth fetching.\n *\n * @param params\n * @returns\n */\nexport function generateServerClient(params) {\n const client = {\n [__amplify]: params.amplify,\n graphql,\n cancel,\n isCancelError,\n models: {},\n };\n return client;\n}\n"],"names":[],"mappings":";;;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,oBAAoB,CAAC,MAAM,EAAE;AAC7C,IAAI,MAAM,MAAM,GAAG;AACnB,QAAQ,CAAC,SAAS,GAAG,MAAM,CAAC,OAAO;AACnC,QAAQ,OAAO;AACf,QAAQ,MAAM;AACd,QAAQ,aAAa;AACrB,QAAQ,MAAM,EAAE,EAAE;AAClB,KAAK,CAAC;AACN,IAAI,OAAO,MAAM,CAAC;AAClB;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/internals/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/api/internals",
|
|
3
|
-
"types": "../
|
|
4
|
-
"main": "../
|
|
5
|
-
"module": "../
|
|
6
|
-
"react-native": "../
|
|
3
|
+
"types": "../dist/esm/internals/index.d.ts",
|
|
4
|
+
"main": "../dist/cjs/internals/index.js",
|
|
5
|
+
"module": "../dist/esm/internals/index.mjs",
|
|
6
|
+
"react-native": "../src/internals/index.ts",
|
|
7
7
|
"sideEffects": false
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/api",
|
|
3
|
-
"version": "6.0.1
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Api category of aws-amplify",
|
|
5
|
-
"main": "./
|
|
6
|
-
"module": "./
|
|
7
|
-
"typings": "./
|
|
8
|
-
"react-native":
|
|
9
|
-
"./lib/index": "./lib-esm/index.js"
|
|
10
|
-
},
|
|
5
|
+
"main": "./dist/cjs/index.js",
|
|
6
|
+
"module": "./dist/esm/index.mjs",
|
|
7
|
+
"typings": "./dist/esm/index.d.ts",
|
|
8
|
+
"react-native": "./src/index.ts",
|
|
11
9
|
"sideEffects": [
|
|
12
|
-
"./
|
|
13
|
-
"./
|
|
10
|
+
"./dist/cjs/API.js",
|
|
11
|
+
"./dist/esm/API.mjs"
|
|
14
12
|
],
|
|
15
13
|
"publishConfig": {
|
|
16
14
|
"access": "public"
|
|
@@ -18,16 +16,46 @@
|
|
|
18
16
|
"scripts": {
|
|
19
17
|
"test": "npm run lint && jest -w 1 --coverage",
|
|
20
18
|
"build-with-test": "npm test && npm run build",
|
|
21
|
-
"build:
|
|
22
|
-
"build:esm": "
|
|
23
|
-
"build:cjs:watch": "
|
|
24
|
-
"build:esm:watch": "
|
|
25
|
-
"build": "npm run clean && npm run build:esm && npm run build:
|
|
26
|
-
"clean": "npm run clean:size && rimraf lib-esm
|
|
19
|
+
"build:umd": "webpack && webpack --config ./webpack.config.dev.js",
|
|
20
|
+
"build:esm-cjs": "rollup -c rollup.config.mjs",
|
|
21
|
+
"build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch",
|
|
22
|
+
"build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch",
|
|
23
|
+
"build": "npm run clean && npm run build:esm-cjs && npm run build:umd",
|
|
24
|
+
"clean": "npm run clean:size && rimraf dist lib lib-esm",
|
|
27
25
|
"clean:size": "rimraf dual-publish-tmp tmp*",
|
|
28
26
|
"format": "echo \"Not implemented\"",
|
|
29
27
|
"lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
|
|
30
|
-
"ts-coverage": "typescript-coverage-report -p ./tsconfig.
|
|
28
|
+
"ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 88"
|
|
29
|
+
},
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/esm/index.d.ts",
|
|
33
|
+
"import": "./dist/esm/index.mjs",
|
|
34
|
+
"require": "./dist/cjs/index.js",
|
|
35
|
+
"react-native": "./src/index.ts"
|
|
36
|
+
},
|
|
37
|
+
"./internals": {
|
|
38
|
+
"types": "./dist/esm/internals/index.d.ts",
|
|
39
|
+
"import": "./dist/esm/internals/index.mjs",
|
|
40
|
+
"require": "./dist/cjs/internals/index.js",
|
|
41
|
+
"react-native": "./src/internals/index.ts"
|
|
42
|
+
},
|
|
43
|
+
"./server": {
|
|
44
|
+
"types": "./dist/esm/server.d.ts",
|
|
45
|
+
"import": "./dist/esm/server.mjs",
|
|
46
|
+
"require": "./dist/cjs/server.js"
|
|
47
|
+
},
|
|
48
|
+
"./package.json": "./package.json"
|
|
49
|
+
},
|
|
50
|
+
"typesVersions": {
|
|
51
|
+
">=4.2": {
|
|
52
|
+
"internals": [
|
|
53
|
+
"./dist/esm/internals/index.d.ts"
|
|
54
|
+
],
|
|
55
|
+
"server": [
|
|
56
|
+
"./dist/esm/server.d.ts"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
31
59
|
},
|
|
32
60
|
"repository": {
|
|
33
61
|
"type": "git",
|
|
@@ -40,25 +68,29 @@
|
|
|
40
68
|
},
|
|
41
69
|
"homepage": "https://aws-amplify.github.io/",
|
|
42
70
|
"devDependencies": {
|
|
71
|
+
"@rollup/plugin-typescript": "11.1.5",
|
|
72
|
+
"rollup": "3.29.4",
|
|
43
73
|
"typescript": "5.1.6"
|
|
44
74
|
},
|
|
45
75
|
"files": [
|
|
46
|
-
"
|
|
47
|
-
"
|
|
76
|
+
"dist/cjs",
|
|
77
|
+
"dist/esm",
|
|
48
78
|
"src",
|
|
49
79
|
"index.*.d.ts",
|
|
50
80
|
"internals",
|
|
51
81
|
"server"
|
|
52
82
|
],
|
|
53
83
|
"dependencies": {
|
|
54
|
-
"@aws-amplify/api-graphql": "4.0.1
|
|
55
|
-
"@aws-amplify/api-rest": "4.0.1
|
|
84
|
+
"@aws-amplify/api-graphql": "4.0.1",
|
|
85
|
+
"@aws-amplify/api-rest": "4.0.1",
|
|
56
86
|
"tslib": "^2.5.0"
|
|
57
87
|
},
|
|
58
88
|
"jest": {
|
|
59
89
|
"globals": {
|
|
60
90
|
"ts-jest": {
|
|
61
|
-
"diagnostics":
|
|
91
|
+
"diagnostics": {
|
|
92
|
+
"pathRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$"
|
|
93
|
+
},
|
|
62
94
|
"tsConfig": {
|
|
63
95
|
"lib": [
|
|
64
96
|
"es5",
|
|
@@ -67,7 +99,12 @@
|
|
|
67
99
|
"esnext.asynciterable",
|
|
68
100
|
"es2017.object"
|
|
69
101
|
],
|
|
70
|
-
"allowJs": true
|
|
102
|
+
"allowJs": true,
|
|
103
|
+
"noEmitOnError": false,
|
|
104
|
+
"strictNullChecks": true,
|
|
105
|
+
"types": [
|
|
106
|
+
"@types/jest"
|
|
107
|
+
]
|
|
71
108
|
}
|
|
72
109
|
}
|
|
73
110
|
},
|
|
@@ -93,11 +130,10 @@
|
|
|
93
130
|
}
|
|
94
131
|
},
|
|
95
132
|
"coveragePathIgnorePatterns": [
|
|
96
|
-
"
|
|
133
|
+
"node_modules",
|
|
97
134
|
"dist",
|
|
98
|
-
"
|
|
99
|
-
"lib-esm"
|
|
135
|
+
"__tests__"
|
|
100
136
|
]
|
|
101
137
|
},
|
|
102
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "f1408db3f570c4a18ada40cecbe7e68a0b31f1fe"
|
|
103
139
|
}
|
package/server/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/api/server",
|
|
3
|
-
"types": "../
|
|
4
|
-
"main": "../
|
|
5
|
-
"module": "../
|
|
6
|
-
"react-native": "../lib-esm/server.js",
|
|
3
|
+
"types": "../dist/esm/server.d.ts",
|
|
4
|
+
"main": "../dist/cjs/server.js",
|
|
5
|
+
"module": "../dist/esm/server.mjs",
|
|
7
6
|
"sideEffects": false
|
|
8
7
|
}
|
package/src/index.ts
CHANGED
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
export { GraphQLQuery, GraphQLSubscription } from './types';
|
|
7
7
|
export { generateClient } from './API';
|
|
8
8
|
|
|
9
|
-
export { GraphQLAuthError } from '@aws-amplify/api-graphql';
|
|
9
|
+
export { GraphQLAuthError, ConnectionState } from '@aws-amplify/api-graphql';
|
|
10
10
|
|
|
11
11
|
export type {
|
|
12
12
|
GraphQLResult,
|
|
13
13
|
GraphQLReturnType,
|
|
14
|
+
CONNECTION_STATE_CHANGE,
|
|
14
15
|
} from '@aws-amplify/api-graphql';
|
|
15
16
|
|
|
16
17
|
export {
|
package/lib/.tsbuildinfo
DELETED
package/lib/API.d.ts
DELETED
package/lib/API.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"API.js","sourceRoot":"","sources":["../src/API.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0DAA+D;AAC/D,kEAI4C;AAC5C,4CAA4C;AAE5C;;GAEG;AACH,SAAgB,cAAc;IAG7B,OAAO;QACN,CAAC,uBAAS,CAAC,EAAE,cAAO;QACpB,OAAO,EAAE,mBAAS;QAClB,MAAM,EAAE,kBAAQ;QAChB,aAAa,EAAE,yBAAe;KAC9B,CAAC;AACH,CAAC;AATD,wCASC"}
|
package/lib/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { GraphQLQuery, GraphQLSubscription } from './types';
|
|
2
|
-
export { generateClient } from './API';
|
|
3
|
-
export { GraphQLAuthError } from '@aws-amplify/api-graphql';
|
|
4
|
-
export type { GraphQLResult, GraphQLReturnType, } from '@aws-amplify/api-graphql';
|
|
5
|
-
export { get, put, post, del, head, patch, isCancelError, } from '@aws-amplify/api-rest';
|
package/lib/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
var API_1 = require("./API");
|
|
6
|
-
exports.generateClient = API_1.generateClient;
|
|
7
|
-
var api_graphql_1 = require("@aws-amplify/api-graphql");
|
|
8
|
-
exports.GraphQLAuthError = api_graphql_1.GraphQLAuthError;
|
|
9
|
-
var api_rest_1 = require("@aws-amplify/api-rest");
|
|
10
|
-
exports.get = api_rest_1.get;
|
|
11
|
-
exports.put = api_rest_1.put;
|
|
12
|
-
exports.post = api_rest_1.post;
|
|
13
|
-
exports.del = api_rest_1.del;
|
|
14
|
-
exports.head = api_rest_1.head;
|
|
15
|
-
exports.patch = api_rest_1.patch;
|
|
16
|
-
exports.isCancelError = api_rest_1.isCancelError;
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAKtC,6BAAuC;AAA9B,+BAAA,cAAc,CAAA;AAEvB,wDAA4D;AAAnD,yCAAA,gBAAgB,CAAA;AAOzB,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,42 +0,0 @@
|
|
|
1
|
-
import { AWSAppSyncRealTimeProvider, GraphQLOperation, GraphQLOptions, GraphQLResult, OperationTypeNode, GraphQLQuery, GraphQLSubscription } from '@aws-amplify/api-graphql';
|
|
2
|
-
import { CustomUserAgentDetails } from '@aws-amplify/core/internals/utils';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated
|
|
6
|
-
* Use RestApi or GraphQLAPI to reduce your application bundle size
|
|
7
|
-
* Export Cloud Logic APIs
|
|
8
|
-
*/
|
|
9
|
-
export declare class InternalAPIClass {
|
|
10
|
-
/**
|
|
11
|
-
* Initialize API with AWS configuration
|
|
12
|
-
* @param {Object} options - Configuration object for API
|
|
13
|
-
*/
|
|
14
|
-
private _options;
|
|
15
|
-
private _graphqlApi;
|
|
16
|
-
Cache: import("@aws-amplify/core/lib-esm/Cache/StorageCache").StorageCache;
|
|
17
|
-
/**
|
|
18
|
-
* Initialize API with AWS configuration
|
|
19
|
-
* @param {Object} options - Configuration object for API
|
|
20
|
-
*/
|
|
21
|
-
constructor(options: any);
|
|
22
|
-
getModuleName(): string;
|
|
23
|
-
/**
|
|
24
|
-
* to get the operation type
|
|
25
|
-
* @param operation
|
|
26
|
-
*/
|
|
27
|
-
getGraphqlOperationType(operation: GraphQLOperation): OperationTypeNode;
|
|
28
|
-
/**
|
|
29
|
-
* Executes a GraphQL operation
|
|
30
|
-
*
|
|
31
|
-
* @param options - GraphQL Options
|
|
32
|
-
* @param [additionalHeaders] - headers to merge in after any `graphql_headers` set in the config
|
|
33
|
-
* @returns An Observable if queryType is 'subscription', else a promise of the graphql result from the query.
|
|
34
|
-
*/
|
|
35
|
-
graphql<T>(options: GraphQLOptions, additionalHeaders?: {
|
|
36
|
-
[key: string]: string;
|
|
37
|
-
}, customUserAgentDetails?: CustomUserAgentDetails): T extends GraphQLQuery<T> ? Promise<GraphQLResult<T>> : T extends GraphQLSubscription<T> ? Observable<{
|
|
38
|
-
provider: AWSAppSyncRealTimeProvider;
|
|
39
|
-
value: GraphQLResult<T>;
|
|
40
|
-
}> : Promise<GraphQLResult<any>> | Observable<object>;
|
|
41
|
-
}
|
|
42
|
-
export declare const InternalAPI: InternalAPIClass;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InternalAPI.js","sourceRoot":"","sources":["../../src/internals/InternalAPI.ts"],"names":[],"mappings":";;AAWA,kEAA6E;AAC7E,4CAAkE;AAClE,6DAI2C;AAG3C;;;;;;;GAOG;AAEH,MAAM,MAAM,GAAG,IAAI,oBAAa,CAAC,KAAK,CAAC,CAAC;AACxC;;;;GAIG;AACH,MAAa,gBAAgB;IAU5B;;;OAGG;IACH,YAAY,OAAO;QANnB,UAAK,GAAG,YAAK,CAAC;QAOb,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,IAAI,mCAAuB,CAAC,OAAO,CAAC,CAAC;QACxD,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAEM,aAAa;QACnB,OAAO,aAAa,CAAC;IACtB,CAAC;IAED;;;OAGG;IACH,uBAAuB,CAAC,SAA2B;QAClD,OAAO,IAAI,CAAC,WAAW,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAC5D,CAAC;IAqBD,OAAO,CACN,OAAuB,EACvB,iBAA6C,EAC7C,sBAA+C;QAE/C,MAAM,mBAAmB,GAA2B;YACnD,QAAQ,EAAE,gBAAQ,CAAC,GAAG;YACtB,MAAM,EAAE,iBAAS,CAAC,OAAO;YACzB,GAAG,sBAAsB;SACzB,CAAC;QAEF,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAC9B,cAAO,EACP,OAAO,EACP,iBAAiB,EACjB,mBAAmB,CACnB,CAAC;IACH,CAAC;CACD;AArED,4CAqEC;AAEY,QAAA,WAAW,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ServerClientGenerationParams, V6Client, V6ClientSSR } from '@aws-amplify/api-graphql';
|
|
2
|
-
/**
|
|
3
|
-
* @private
|
|
4
|
-
*
|
|
5
|
-
* Creates a client that can be used to make GraphQL requests, using a provided `AmplifyClassV6`
|
|
6
|
-
* compatible context object for config and auth fetching.
|
|
7
|
-
*
|
|
8
|
-
* @param params
|
|
9
|
-
* @returns
|
|
10
|
-
*/
|
|
11
|
-
export declare function generateServerClient<T extends Record<any, any> = never, ClientType extends V6ClientSSR<T> | V6Client<T> = V6ClientSSR<T>>(params: ServerClientGenerationParams): ClientType;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generateServerClient.js","sourceRoot":"","sources":["../../src/internals/generateServerClient.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,0DAKkC;AAClC,kEAI4C;AAE5C;;;;;;;;GAQG;AACH,SAAgB,oBAAoB,CAGlC,MAAoC;IACrC,MAAM,MAAM,GAAG;QACd,CAAC,uBAAS,CAAC,EAAE,MAAM,CAAC,OAAO;QAC3B,OAAO,EAAP,mBAAO;QACP,MAAM,EAAN,kBAAM;QACN,aAAa,EAAb,yBAAa;QACb,MAAM,EAAE,EAAE;KACH,CAAC;IAET,OAAO,MAAoB,CAAC;AAC7B,CAAC;AAbD,oDAaC"}
|
package/lib/internals/index.d.ts
DELETED
package/lib/internals/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
var InternalAPI_1 = require("./InternalAPI");
|
|
6
|
-
exports.InternalAPI = InternalAPI_1.InternalAPI;
|
|
7
|
-
exports.InternalAPIClass = InternalAPI_1.InternalAPIClass;
|
|
8
|
-
var generateServerClient_1 = require("./generateServerClient");
|
|
9
|
-
exports.generateServerClient = generateServerClient_1.generateServerClient;
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internals/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,6CAA8D;AAArD,oCAAA,WAAW,CAAA;AAAE,yCAAA,gBAAgB,CAAA;AACtC,+DAA8D;AAArD,sDAAA,oBAAoB,CAAA"}
|
package/lib/server.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { get, put, post, del, head, patch, isCancelError, } from '@aws-amplify/api-rest/server';
|
package/lib/server.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
var server_1 = require("@aws-amplify/api-rest/server");
|
|
6
|
-
exports.get = server_1.get;
|
|
7
|
-
exports.put = server_1.put;
|
|
8
|
-
exports.post = server_1.post;
|
|
9
|
-
exports.del = server_1.del;
|
|
10
|
-
exports.head = server_1.head;
|
|
11
|
-
exports.patch = server_1.patch;
|
|
12
|
-
exports.isCancelError = server_1.isCancelError;
|
|
13
|
-
//# sourceMappingURL=server.js.map
|
package/lib/server.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,uDAQsC;AAPrC,uBAAA,GAAG,CAAA;AACH,uBAAA,GAAG,CAAA;AACH,wBAAA,IAAI,CAAA;AACJ,uBAAA,GAAG,CAAA;AACH,wBAAA,IAAI,CAAA;AACJ,yBAAA,KAAK,CAAA;AACL,iCAAA,aAAa,CAAA"}
|
package/lib/types/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This exports from the types directory is a temporary workaround, since Amplify CLI currently
|
|
3
|
-
* generates code that relies on this import path https://github.com/aws-amplify/amplify-cli/issues/3863
|
|
4
|
-
* This will be removed in future release when CLI and customers moves to recommeneded import styles.
|
|
5
|
-
*/
|
|
6
|
-
export { graphqlOperation, GraphQLAuthError, GraphQLResult, GraphQLQuery, GraphQLSubscription, } from '@aws-amplify/api-graphql';
|
package/lib/types/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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/.tsbuildinfo
DELETED
package/lib-esm/API.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"API.js","sourceRoot":"","sources":["../src/API.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAY,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACN,OAAO,IAAI,SAAS,EACpB,MAAM,IAAI,QAAQ,EAClB,aAAa,IAAI,eAAe,GAChC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C;;GAEG;AACH,MAAM,UAAU,cAAc;IAG7B,OAAO;QACN,CAAC,SAAS,CAAC,EAAE,OAAO;QACpB,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,QAAQ;QAChB,aAAa,EAAE,eAAe;KAC9B,CAAC;AACH,CAAC"}
|
package/lib-esm/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
export { generateClient } from './API';
|
|
4
|
-
export { GraphQLAuthError } from '@aws-amplify/api-graphql';
|
|
5
|
-
export { get, put, post, del, head, patch, isCancelError, } from '@aws-amplify/api-rest';
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/lib-esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO5D,OAAO,EACN,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,KAAK,EACL,aAAa,GACb,MAAM,uBAAuB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InternalAPI.js","sourceRoot":"","sources":["../../src/internals/InternalAPI.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EACN,SAAS,EACT,QAAQ,GAER,MAAM,mCAAmC,CAAC;AAG3C;;;;;;;GAOG;AAEH,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;AACxC;;;;GAIG;AACH,MAAM,OAAO,gBAAgB;IAU5B;;;OAGG;IACH,YAAY,OAAO;QANnB,UAAK,GAAG,KAAK,CAAC;QAOb,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,IAAI,uBAAuB,CAAC,OAAO,CAAC,CAAC;QACxD,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAEM,aAAa;QACnB,OAAO,aAAa,CAAC;IACtB,CAAC;IAED;;;OAGG;IACH,uBAAuB,CAAC,SAA2B;QAClD,OAAO,IAAI,CAAC,WAAW,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAC5D,CAAC;IAqBD,OAAO,CACN,OAAuB,EACvB,iBAA6C,EAC7C,sBAA+C;QAE/C,MAAM,mBAAmB,GAA2B;YACnD,QAAQ,EAAE,QAAQ,CAAC,GAAG;YACtB,MAAM,EAAE,SAAS,CAAC,OAAO;YACzB,GAAG,sBAAsB;SACzB,CAAC;QAEF,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAC9B,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,mBAAmB,CACnB,CAAC;IACH,CAAC;CACD;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generateServerClient.js","sourceRoot":"","sources":["../../src/internals/generateServerClient.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAIN,SAAS,GACT,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACN,OAAO,EACP,MAAM,EACN,aAAa,GACb,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;;GAQG;AACH,MAAM,UAAU,oBAAoB,CAGlC,MAAoC;IACrC,MAAM,MAAM,GAAG;QACd,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,OAAO;QAC3B,OAAO;QACP,MAAM;QACN,aAAa;QACb,MAAM,EAAE,EAAE;KACH,CAAC;IAET,OAAO,MAAoB,CAAC;AAC7B,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
export { InternalAPI, InternalAPIClass } from './InternalAPI';
|
|
4
|
-
export { generateServerClient } from './generateServerClient';
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internals/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/lib-esm/server.js
DELETED
package/lib-esm/server.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EACN,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,KAAK,EACL,aAAa,GACb,MAAM,8BAA8B,CAAC"}
|
package/lib-esm/types/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
/**
|
|
4
|
-
* This exports from the types directory is a temporary workaround, since Amplify CLI currently
|
|
5
|
-
* generates code that relies on this import path https://github.com/aws-amplify/amplify-cli/issues/3863
|
|
6
|
-
* This will be removed in future release when CLI and customers moves to recommeneded import styles.
|
|
7
|
-
*/
|
|
8
|
-
export { graphqlOperation, GraphQLAuthError, } from '@aws-amplify/api-graphql';
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|