@aws-amplify/api 6.0.46 → 6.0.47-unstable.7700105.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/dist/cjs/API.js +3 -0
- package/dist/cjs/API.js.map +1 -1
- package/dist/esm/API.d.ts +3 -0
- package/dist/esm/API.mjs +3 -0
- package/dist/esm/API.mjs.map +1 -1
- package/package.json +4 -4
- package/src/API.ts +3 -0
package/dist/cjs/API.js
CHANGED
|
@@ -6,6 +6,9 @@ const internals_1 = require("@aws-amplify/api-graphql/internals");
|
|
|
6
6
|
const core_1 = require("@aws-amplify/core");
|
|
7
7
|
/**
|
|
8
8
|
* Generates an API client that can work with models or raw GraphQL
|
|
9
|
+
*
|
|
10
|
+
* @returns {@link V6Client}
|
|
11
|
+
* @throws {@link Error} - Throws error when client cannot be generated due to configuration issues.
|
|
9
12
|
*/
|
|
10
13
|
function generateClient(options = {}) {
|
|
11
14
|
return (0, internals_1.generateClient)({
|
package/dist/cjs/API.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"API.js","sources":["../../src/API.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.generateClient = void 0;\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(options = {}) {\n return (0, internals_1.generateClient)({\n ...options,\n amplify: core_1.Amplify,\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,MAAM,WAAW,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAAC;AAClE,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C;AACA;AACA;AACA,SAAS,cAAc,CAAC,OAAO,GAAG,EAAE,EAAE;AACtC,IAAI,OAAO,IAAI,WAAW,CAAC,cAAc,EAAE;AAC3C,QAAQ,GAAG,OAAO;AAClB,QAAQ,OAAO,EAAE,MAAM,CAAC,OAAO;AAC/B,KAAK,CAAC,CAAC;AACP,CAAC;AACD,OAAO,CAAC,cAAc,GAAG,cAAc;;"}
|
|
1
|
+
{"version":3,"file":"API.js","sources":["../../src/API.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.generateClient = void 0;\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 *\n * @returns {@link V6Client}\n * @throws {@link Error} - Throws error when client cannot be generated due to configuration issues.\n */\nfunction generateClient(options = {}) {\n return (0, internals_1.generateClient)({\n ...options,\n amplify: core_1.Amplify,\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,MAAM,WAAW,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAAC;AAClE,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,cAAc,CAAC,OAAO,GAAG,EAAE,EAAE;AACtC,IAAI,OAAO,IAAI,WAAW,CAAC,cAAc,EAAE;AAC3C,QAAQ,GAAG,OAAO;AAClB,QAAQ,OAAO,EAAE,MAAM,CAAC,OAAO;AAC/B,KAAK,CAAC,CAAC;AACP,CAAC;AACD,OAAO,CAAC,cAAc,GAAG,cAAc;;"}
|
package/dist/esm/API.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { CommonPublicClientOptions, V6Client } from '@aws-amplify/api-graphql';
|
|
2
2
|
/**
|
|
3
3
|
* Generates an API client that can work with models or raw GraphQL
|
|
4
|
+
*
|
|
5
|
+
* @returns {@link V6Client}
|
|
6
|
+
* @throws {@link Error} - Throws error when client cannot be generated due to configuration issues.
|
|
4
7
|
*/
|
|
5
8
|
export declare function generateClient<T extends Record<any, any> = never>(options?: CommonPublicClientOptions): V6Client<T>;
|
package/dist/esm/API.mjs
CHANGED
|
@@ -3,6 +3,9 @@ import { Amplify } from '@aws-amplify/core';
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Generates an API client that can work with models or raw GraphQL
|
|
6
|
+
*
|
|
7
|
+
* @returns {@link V6Client}
|
|
8
|
+
* @throws {@link Error} - Throws error when client cannot be generated due to configuration issues.
|
|
6
9
|
*/
|
|
7
10
|
function generateClient(options = {}) {
|
|
8
11
|
return generateClient$1({
|
package/dist/esm/API.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"API.mjs","sources":["../../src/API.ts"],"sourcesContent":["import { generateClient as internalGenerateClient } 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(options = {}) {\n return internalGenerateClient({\n ...options,\n amplify: Amplify,\n });\n}\n"],"names":["internalGenerateClient"],"mappings":";;;AAEA;AACA;AACA;AACO,SAAS,cAAc,CAAC,OAAO,GAAG,EAAE,EAAE;AAC7C,IAAI,OAAOA,gBAAsB,CAAC;AAClC,QAAQ,GAAG,OAAO;AAClB,QAAQ,OAAO,EAAE,OAAO;AACxB,KAAK,CAAC,CAAC;AACP;;;;"}
|
|
1
|
+
{"version":3,"file":"API.mjs","sources":["../../src/API.ts"],"sourcesContent":["import { generateClient as internalGenerateClient } 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 *\n * @returns {@link V6Client}\n * @throws {@link Error} - Throws error when client cannot be generated due to configuration issues.\n */\nexport function generateClient(options = {}) {\n return internalGenerateClient({\n ...options,\n amplify: Amplify,\n });\n}\n"],"names":["internalGenerateClient"],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,cAAc,CAAC,OAAO,GAAG,EAAE,EAAE;AAC7C,IAAI,OAAOA,gBAAsB,CAAC;AAClC,QAAQ,GAAG,OAAO;AAClB,QAAQ,OAAO,EAAE,OAAO;AACxB,KAAK,CAAC,CAAC;AACP;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/api",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.47-unstable.7700105.0+7700105",
|
|
4
4
|
"description": "Api category of aws-amplify",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.mjs",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"server"
|
|
80
80
|
],
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@aws-amplify/api-graphql": "4.1.
|
|
83
|
-
"@aws-amplify/api-rest": "4.0.
|
|
82
|
+
"@aws-amplify/api-graphql": "4.1.16-unstable.7700105.0+7700105",
|
|
83
|
+
"@aws-amplify/api-rest": "4.0.45-unstable.7700105.0+7700105",
|
|
84
84
|
"tslib": "^2.5.0"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "77001053b90403f3ea405f2435117a469d28ed2d"
|
|
87
87
|
}
|
package/src/API.ts
CHANGED
|
@@ -6,6 +6,9 @@ import { Amplify } from '@aws-amplify/core';
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Generates an API client that can work with models or raw GraphQL
|
|
9
|
+
*
|
|
10
|
+
* @returns {@link V6Client}
|
|
11
|
+
* @throws {@link Error} - Throws error when client cannot be generated due to configuration issues.
|
|
9
12
|
*/
|
|
10
13
|
export function generateClient<T extends Record<any, any> = never>(
|
|
11
14
|
options: CommonPublicClientOptions = {},
|