@constructor-io/constructorio-client-javascript 2.29.6 → 2.29.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.
@@ -814,6 +814,7 @@ var Tracker = /*#__PURE__*/function () {
814
814
  * @param {string} parameters.pod_id - Pod identifier
815
815
  * @param {string} parameters.strategy_id - Strategy identifier
816
816
  * @param {string} parameters.item_id - Product item unique identifier
817
+ * @param {string} parameters.item_name - Product name
817
818
  * @param {string} [parameters.variation_id] - Product item variation unique identifier
818
819
  * @param {string} [parameters.section="Products"] - Index section
819
820
  * @param {string} [parameters.result_id] - Recommendation result identifier (returned in response from Constructor)
@@ -836,6 +837,7 @@ var Tracker = /*#__PURE__*/function () {
836
837
  * num_results_per_page: 12,
837
838
  * pod_id: '019927c2-f955-4020',
838
839
  * strategy_id: 'complimentary',
840
+ * item_name: 'Socks',
839
841
  * item_id: 'KMH876',
840
842
  * },
841
843
  * );
@@ -859,7 +861,8 @@ var Tracker = /*#__PURE__*/function () {
859
861
  num_results_per_page = parameters.num_results_per_page,
860
862
  pod_id = parameters.pod_id,
861
863
  strategy_id = parameters.strategy_id,
862
- item_id = parameters.item_id;
864
+ item_id = parameters.item_id,
865
+ item_name = parameters.item_name;
863
866
 
864
867
  if (variation_id) {
865
868
  bodyParams.variation_id = variation_id;
@@ -903,6 +906,10 @@ var Tracker = /*#__PURE__*/function () {
903
906
  bodyParams.item_id = item_id;
904
907
  }
905
908
 
909
+ if (item_name) {
910
+ bodyParams.item_name = item_name;
911
+ }
912
+
906
913
  var requestURL = "".concat(requestPath).concat(applyParamsAsString({}, this.options));
907
914
  var requestMethod = 'POST';
908
915
  var requestBody = applyParams(bodyParams, _objectSpread(_objectSpread({}, this.options), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-client-javascript",
3
- "version": "2.29.6",
3
+ "version": "2.29.7",
4
4
  "description": "Constructor.io JavaScript client",
5
5
  "main": "lib/constructorio.js",
6
6
  "scripts": {