@aws-amplify/datastore 3.7.7-unstable.7 → 3.7.7-unstable.8

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.
@@ -58480,9 +58480,9 @@ function () {
58480
58480
  /**
58481
58481
  * Executes a GraphQL operation
58482
58482
  *
58483
- * @param {GraphQLOptions} GraphQL Options
58484
- * @param {object} additionalHeaders headers to merge in after any `graphql_headers` set in the config
58485
- * @returns {Promise<GraphQLResult> | Observable<object>}
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
- throw new Error("invalid operation type: " + operationType);
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 {string} apiName - The api name of the request
60313
- * @param {string} path - The path of the request
60314
- * @param {json} [init] - Request extra params
60315
- * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful.
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 {string} apiName - The api name of the request
60325
- * @param {string} path - The path of the request
60326
- * @param {json} [init] - Request extra params
60327
- * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful.
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 {string} apiName - The api name of the request
60337
- * @param {string} path - The path of the request
60338
- * @param {json} [init] - Request extra params
60339
- * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful.
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 {string} apiName - The api name of the request
60349
- * @param {string} path - The path of the request
60350
- * @param {json} [init] - Request extra params
60351
- * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful.
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 {string} apiName - The api name of the request
60361
- * @param {string} path - The path of the request
60362
- * @param {json} [init] - Request extra params
60363
- * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful.
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 {string} apiName - The api name of the request
60373
- * @param {string} path - The path of the request
60374
- * @param {json} [init] - Request extra params
60375
- * @return {Promise} - A promise that resolves to an object with response status and JSON data, if successful.
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 {any} error - Any error
60385
- * @return {boolean} - A boolean indicating if the error was from an api request cancellation
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 {any} request - request to cancel
60395
- * @return {boolean} - A boolean indicating if the request was cancelled
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 {string} apiName - The name of the api
60405
- * @return {string} - The endpoint of the api
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);