@aws-amplify/datastore 3.7.7-unstable.7 → 3.7.7
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.7.7](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore@3.7.6...@aws-amplify/datastore@3.7.7) (2022-02-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-amplify/datastore
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [3.7.6](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore@3.7.5...@aws-amplify/datastore@3.7.6) (2022-02-03)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -58480,9 +58480,9 @@ function () {
|
|
|
58480
58480
|
/**
|
|
58481
58481
|
* Executes a GraphQL operation
|
|
58482
58482
|
*
|
|
58483
|
-
* @param
|
|
58484
|
-
* @param
|
|
58485
|
-
* @returns
|
|
58483
|
+
* @param options - GraphQL Options
|
|
58484
|
+
* @param [additionalHeaders] - headers to merge in after any `graphql_headers` set in the config
|
|
58485
|
+
* @returns An Observable if the query is a subscription query, else a promise of the graphql result.
|
|
58486
58486
|
*/
|
|
58487
58487
|
|
|
58488
58488
|
|
|
@@ -58532,9 +58532,10 @@ function () {
|
|
|
58532
58532
|
variables: variables,
|
|
58533
58533
|
authMode: authMode
|
|
58534
58534
|
}, headers);
|
|
58535
|
-
}
|
|
58536
58535
|
|
|
58537
|
-
|
|
58536
|
+
default:
|
|
58537
|
+
throw new Error("invalid operation type: " + operationType);
|
|
58538
|
+
}
|
|
58538
58539
|
};
|
|
58539
58540
|
|
|
58540
58541
|
GraphQLAPIClass.prototype._graphql = function (_a, additionalHeaders, initParams) {
|
|
@@ -60309,10 +60310,10 @@ function () {
|
|
|
60309
60310
|
};
|
|
60310
60311
|
/**
|
|
60311
60312
|
* Make a GET request
|
|
60312
|
-
* @param
|
|
60313
|
-
* @param
|
|
60314
|
-
* @param
|
|
60315
|
-
* @return
|
|
60313
|
+
* @param apiName - The api name of the request
|
|
60314
|
+
* @param path - The path of the request
|
|
60315
|
+
* @param [init] - Request extra params
|
|
60316
|
+
* @return A promise that resolves to an object with response status and JSON data, if successful.
|
|
60316
60317
|
*/
|
|
60317
60318
|
|
|
60318
60319
|
|
|
@@ -60321,10 +60322,10 @@ function () {
|
|
|
60321
60322
|
};
|
|
60322
60323
|
/**
|
|
60323
60324
|
* Make a POST request
|
|
60324
|
-
* @param
|
|
60325
|
-
* @param
|
|
60326
|
-
* @param
|
|
60327
|
-
* @return
|
|
60325
|
+
* @param apiName - The api name of the request
|
|
60326
|
+
* @param path - The path of the request
|
|
60327
|
+
* @param [init] - Request extra params
|
|
60328
|
+
* @return A promise that resolves to an object with response status and JSON data, if successful.
|
|
60328
60329
|
*/
|
|
60329
60330
|
|
|
60330
60331
|
|
|
@@ -60333,10 +60334,10 @@ function () {
|
|
|
60333
60334
|
};
|
|
60334
60335
|
/**
|
|
60335
60336
|
* Make a PUT request
|
|
60336
|
-
* @param
|
|
60337
|
-
* @param
|
|
60338
|
-
* @param
|
|
60339
|
-
* @return
|
|
60337
|
+
* @param apiName - The api name of the request
|
|
60338
|
+
* @param path - The path of the request
|
|
60339
|
+
* @param [init] - Request extra params
|
|
60340
|
+
* @return A promise that resolves to an object with response status and JSON data, if successful.
|
|
60340
60341
|
*/
|
|
60341
60342
|
|
|
60342
60343
|
|
|
@@ -60345,10 +60346,10 @@ function () {
|
|
|
60345
60346
|
};
|
|
60346
60347
|
/**
|
|
60347
60348
|
* Make a PATCH request
|
|
60348
|
-
* @param
|
|
60349
|
-
* @param
|
|
60350
|
-
* @param
|
|
60351
|
-
* @return
|
|
60349
|
+
* @param apiName - The api name of the request
|
|
60350
|
+
* @param path - The path of the request
|
|
60351
|
+
* @param [init] - Request extra params
|
|
60352
|
+
* @return A promise that resolves to an object with response status and JSON data, if successful.
|
|
60352
60353
|
*/
|
|
60353
60354
|
|
|
60354
60355
|
|
|
@@ -60357,10 +60358,10 @@ function () {
|
|
|
60357
60358
|
};
|
|
60358
60359
|
/**
|
|
60359
60360
|
* Make a DEL request
|
|
60360
|
-
* @param
|
|
60361
|
-
* @param
|
|
60362
|
-
* @param
|
|
60363
|
-
* @return
|
|
60361
|
+
* @param apiName - The api name of the request
|
|
60362
|
+
* @param path - The path of the request
|
|
60363
|
+
* @param [init] - Request extra params
|
|
60364
|
+
* @return A promise that resolves to an object with response status and JSON data, if successful.
|
|
60364
60365
|
*/
|
|
60365
60366
|
|
|
60366
60367
|
|
|
@@ -60369,10 +60370,10 @@ function () {
|
|
|
60369
60370
|
};
|
|
60370
60371
|
/**
|
|
60371
60372
|
* Make a HEAD request
|
|
60372
|
-
* @param
|
|
60373
|
-
* @param
|
|
60374
|
-
* @param
|
|
60375
|
-
* @return
|
|
60373
|
+
* @param apiName - The api name of the request
|
|
60374
|
+
* @param path - The path of the request
|
|
60375
|
+
* @param [init] - Request extra params
|
|
60376
|
+
* @return A promise that resolves to an object with response status and JSON data, if successful.
|
|
60376
60377
|
*/
|
|
60377
60378
|
|
|
60378
60379
|
|
|
@@ -60381,8 +60382,8 @@ function () {
|
|
|
60381
60382
|
};
|
|
60382
60383
|
/**
|
|
60383
60384
|
* Checks to see if an error thrown is from an api request cancellation
|
|
60384
|
-
* @param
|
|
60385
|
-
* @return
|
|
60385
|
+
* @param error - Any error
|
|
60386
|
+
* @return If the error was from an api request cancellation
|
|
60386
60387
|
*/
|
|
60387
60388
|
|
|
60388
60389
|
|
|
@@ -60391,8 +60392,9 @@ function () {
|
|
|
60391
60392
|
};
|
|
60392
60393
|
/**
|
|
60393
60394
|
* Cancels an inflight request
|
|
60394
|
-
* @param
|
|
60395
|
-
* @
|
|
60395
|
+
* @param request - request to cancel
|
|
60396
|
+
* @param [message] - custom error message
|
|
60397
|
+
* @return If the request was cancelled
|
|
60396
60398
|
*/
|
|
60397
60399
|
|
|
60398
60400
|
|
|
@@ -60401,8 +60403,8 @@ function () {
|
|
|
60401
60403
|
};
|
|
60402
60404
|
/**
|
|
60403
60405
|
* Getting endpoint for API
|
|
60404
|
-
* @param
|
|
60405
|
-
* @return
|
|
60406
|
+
* @param apiName - The name of the api
|
|
60407
|
+
* @return The endpoint of the api
|
|
60406
60408
|
*/
|
|
60407
60409
|
|
|
60408
60410
|
|
|
@@ -60424,14 +60426,6 @@ function () {
|
|
|
60424
60426
|
APIClass.prototype.getGraphqlOperationType = function (operation) {
|
|
60425
60427
|
return this._graphqlApi.getGraphqlOperationType(operation);
|
|
60426
60428
|
};
|
|
60427
|
-
/**
|
|
60428
|
-
* Executes a GraphQL operation
|
|
60429
|
-
*
|
|
60430
|
-
* @param {GraphQLOptions} GraphQL Options
|
|
60431
|
-
* @param {object} additionalHeaders headers to merge in after any `graphql_headers` set in the config
|
|
60432
|
-
* @returns {Promise<GraphQLResult> | Observable<object>}
|
|
60433
|
-
*/
|
|
60434
|
-
|
|
60435
60429
|
|
|
60436
60430
|
APIClass.prototype.graphql = function (options, additionalHeaders) {
|
|
60437
60431
|
return this._graphqlApi.graphql(options, additionalHeaders);
|