@aws-amplify/analytics 5.1.13-unstable.1 → 5.1.13-unstable.10

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.
@@ -62912,7 +62912,7 @@ function () {
62912
62912
  };
62913
62913
  /**
62914
62914
  * add plugin into Analytics category
62915
- * @param {Object} pluggable - an instance of the plugin
62915
+ * @param pluggable - an instance of the plugin
62916
62916
  */
62917
62917
 
62918
62918
 
@@ -62933,7 +62933,7 @@ function () {
62933
62933
  };
62934
62934
  /**
62935
62935
  * Get the plugin object
62936
- * @param providerName - the name of the plugin
62936
+ * @param providerName - the name of the provider to be removed
62937
62937
  */
62938
62938
 
62939
62939
 
@@ -62951,7 +62951,7 @@ function () {
62951
62951
  };
62952
62952
  /**
62953
62953
  * Remove the plugin object
62954
- * @param providerName - the name of the plugin
62954
+ * @param providerName - the name of the provider to be removed
62955
62955
  */
62956
62956
 
62957
62957
 
@@ -62993,6 +62993,7 @@ function () {
62993
62993
  };
62994
62994
  /**
62995
62995
  * Record Session start
62996
+ * @param [provider] - name of the provider.
62996
62997
  * @return - A promise which resolves if buffer doesn't overflow
62997
62998
  */
62998
62999
 
@@ -63015,6 +63016,7 @@ function () {
63015
63016
  };
63016
63017
  /**
63017
63018
  * Record Session stop
63019
+ * @param [provider] - name of the provider.
63018
63020
  * @return - A promise which resolves if buffer doesn't overflow
63019
63021
  */
63020
63022
 
@@ -63035,16 +63037,8 @@ function () {
63035
63037
  });
63036
63038
  });
63037
63039
  };
63038
- /**
63039
- * Record one analytic event and send it to Pinpoint
63040
- * @param {String} name - The name of the event
63041
- * @param {Object} [attributes] - Attributes of the event
63042
- * @param {Object} [metrics] - Event metrics
63043
- * @return - A promise which resolves if buffer doesn't overflow
63044
- */
63045
-
63046
63040
 
63047
- AnalyticsClass.prototype.record = function (event, provider, metrics) {
63041
+ AnalyticsClass.prototype.record = function (event, providerOrAttributes, metrics) {
63048
63042
  return __awaiter(this, void 0, void 0, function () {
63049
63043
  var params;
63050
63044
  return __generator(this, function (_a) {
@@ -63054,7 +63048,7 @@ function () {
63054
63048
  params = {
63055
63049
  event: {
63056
63050
  name: event,
63057
- attributes: provider,
63051
+ attributes: providerOrAttributes,
63058
63052
  metrics: metrics
63059
63053
  },
63060
63054
  provider: 'AWSPinpoint'
@@ -63062,7 +63056,7 @@ function () {
63062
63056
  } else {
63063
63057
  params = {
63064
63058
  event: event,
63065
- provider: provider
63059
+ provider: providerOrAttributes
63066
63060
  };
63067
63061
  }
63068
63062